From 790ee2bd8cc115d5347dd9fb990b9dc452e3820b Mon Sep 17 00:00:00 2001 From: David Lopez Date: Fri, 8 Sep 2023 06:13:31 +0000 Subject: [PATCH] Update linux/os/create_user_ssh/check_and _add_authorized_key.yml --- .../os/create_user_ssh/check_and _add_authorized_key.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linux/os/create_user_ssh/check_and _add_authorized_key.yml b/linux/os/create_user_ssh/check_and _add_authorized_key.yml index 1b8b3b3..a4bac90 100644 --- a/linux/os/create_user_ssh/check_and _add_authorized_key.yml +++ b/linux/os/create_user_ssh/check_and _add_authorized_key.yml @@ -18,15 +18,10 @@ debug: msg: "Authorized key exists: {{ authorized_key_exists }}" - - name: Create user with hash - user: - name: awx - state: present - shell: /bin/bash - name: Add ssh pub keys AWX authorized_key: - user: awx + user: root key: "{{ key_to_add }}" state: present manage_dir: yes - when: "'authorized_key_exists' True" + when: "'authorized_key_exists' False"