diff --git a/roles/ssh-cli/tasks/main.yml b/roles/ssh-cli/tasks/main.yml index ea32e53..8620cdd 100644 --- a/roles/ssh-cli/tasks/main.yml +++ b/roles/ssh-cli/tasks/main.yml @@ -1,10 +1,14 @@ --- - name: Creation de .ssh - file: path=/root/.ssh mode=0700 state=directory + file: + path: /root/.ssh + mode: 0700 + state: directory -- name: Copie cle public s-adm - shell: curl 192.168.99.99/id_rsa.pub > ~/.ssh/authorized_keys +- name: Copie cle publiique depuis s-adm + ansible.posix.authorized_key: + user: root + state: present + key: http://s-adm.gsb.adm/id_rsa.pub -#- name: Copie cle public s-spec -# shell: curl 192.168.99.10/id_rsa.pub >> ~/.ssh/authorized_keys