Ansible/node-configuration/tasks/users.yml

22 lines
517 B
YAML
Raw Permalink Normal View History

2022-05-25 23:24:56 +00:00
- include_vars: ../vars/users.yml
# Atmen : slave, servant
- name: Add provisioning user "atmen" for ansible
ansible.builtin.user:
name: atmen
comment: Ansible provisioner
groups: sudo
append: yes
- name: Add maintainer user
ansible.builtin.user:
name: "{{ maintainer_user }}"
comment: Maintainer user
groups: sudo
append: yes
password: "{{ maintainer_password | password_hash('sha512') }}"
- name: Disable root login
ansible.builtin.user:
name: root
password: '*'