From 7c01d0aa18f6f98208493c1d3f81357c9cb93a0a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Jan 2024 17:01:48 +0100 Subject: [PATCH] chgt role sshcli --- roles/ssh-cli/tasks/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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