2023-10-11 11:45:13 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# vars files
|
2023-10-11 12:06:21 +00:00
|
|
|
# vars_files:
|
2023-10-11 11:45:13 +00:00
|
|
|
|
|
|
|
# create user awx-user on debian os
|
|
|
|
- name: Create a ssh user awx-user in the system
|
|
|
|
user:
|
|
|
|
name: awx-user
|
|
|
|
password: '*'
|
|
|
|
shell: /bin/bash
|
|
|
|
groups: sudo
|
|
|
|
state: present
|
|
|
|
comment: ssh user
|
|
|
|
|
|
|
|
# add ssh-key pub to user awx-user
|
|
|
|
- name: Adding ssh-pub-key to user awx-user
|
|
|
|
authorized_key:
|
|
|
|
user: awx-user
|
|
|
|
key: "{{ key_to_add }}"
|
|
|
|
|
|
|
|
# add awx-user to sudoers
|