Update linux/os/create_user_ssh/check_and _add_authorized_key.yml
This commit is contained in:
parent
53f43647e3
commit
790ee2bd8c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue