Update linux/os/create_user_ssh/awx_add_authorized_key.yml
This commit is contained in:
parent
0752bd0361
commit
83c32cdf8d
|
@ -6,15 +6,11 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Create user awx
|
|
||||||
user:
|
|
||||||
name: awx
|
|
||||||
state: present
|
|
||||||
shell: /bin/bash
|
|
||||||
- name: Add ssh pub keys AWX
|
- name: Add ssh pub keys AWX
|
||||||
authorized_key:
|
authorized_key:
|
||||||
user: awx
|
user: awx
|
||||||
key: "{{ key_to_add }}"
|
key: "{{ key_to_add }}"
|
||||||
|
path: /root/.ssh/authorized_keys
|
||||||
state: present
|
state: present
|
||||||
manage_dir: yes
|
manage_dir: yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue