|
---
|
|
|
|
- name: Add service account ansible
|
|
ansible.builtin.user:
|
|
name: ansible
|
|
state: present
|
|
shell: /bin/bash
|
|
groups: sudo
|
|
append: yes
|
|
password: "{{ user_password_hashed }}"
|
|
|
|
- name: Add ssh key to the user ansible
|
|
authorized_key:
|
|
user: ansible
|
|
state: present
|
|
key: "{{ ssh_key }}"
|