Update linux/os/create_user_ssh/check_and _add_authorized_key.yml
This commit is contained in:
parent
4160edcebd
commit
e6c5a79e5a
|
@ -18,6 +18,12 @@
|
|||
- name: Display result
|
||||
debug:
|
||||
msg: "Authorized key exists: {{ authorized_key_exists }}"
|
||||
|
||||
|
||||
|
||||
- name: Add ssh pub keys AWX
|
||||
authorized_key:
|
||||
user: root
|
||||
key: "{{ key_to_add }}"
|
||||
when: not authorized_key_exists | False
|
||||
state: present
|
||||
manage_dir: yes
|
||||
|
||||
|
|
Loading…
Reference in New Issue