Update linux/os/create_user_ssh/awx_add_authorized_key.yml

This commit is contained in:
David Lopez 2023-09-07 07:39:46 +00:00
parent 0752bd0361
commit 83c32cdf8d
1 changed files with 1 additions and 5 deletions

View File

@ -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