diff --git a/roles/ssh-cli/tasks/main.yml b/roles/ssh-cli/tasks/main.yml index 8620cdd..1024591 100644 --- a/roles/ssh-cli/tasks/main.yml +++ b/roles/ssh-cli/tasks/main.yml @@ -6,9 +6,20 @@ mode: 0700 state: directory -- name: Copie cle publiique depuis s-adm +- name: Copie cle publique depuis s-adm ansible.posix.authorized_key: user: root state: present key: http://s-adm.gsb.adm/id_rsa.pub +- name: Creation user gsbadm + ansible.builtin.user: + name: gsbadm + groups: sudo + append: yes + +- name: Copie cle publique oour gsbadm depuis s-adm + ansible.posix.authorized_key: + user: gsbadm + state: present + key: http://s-adm.gsb.adm/id_rsa.pub