25 lines
521 B
YAML
25 lines
521 B
YAML
---
|
|
|
|
- name: Creation user awx
|
|
ansible.builtin.user:
|
|
name: awx
|
|
groups: sudo
|
|
append: yes
|
|
|
|
- name: Cration d'un mdp pour user awx
|
|
user:
|
|
name: awx
|
|
password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70'
|
|
|
|
- name: Get awx key_pub
|
|
get_url:
|
|
url: http://s-adm.gsb.adm/gsbstore/id_rsa_awx.pub
|
|
dest: /tmp
|
|
|
|
|
|
- name: Set authorized key taken from file /tmp
|
|
ansible.posix.authorized_key:
|
|
user: awx
|
|
state: present
|
|
key: "{{ lookup('file', '/tmp/id_rsa_awx.pub') }}"
|