2024-02-01 11:51:52 +01:00

21 lines
398 B
YAML

---
- name: Creation user awx
ansible.builtin.user:
name: awx
groups: sudo
append: yes
shell: /bin/bash
- 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') }}"