1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_users.git synced 2024-08-16 10:29:50 +02:00
ansible_collection_users/roles/user/tasks/main.yml
L3D 8106d0a4da
Improve login as root
+ fixed bug in sshd handler
+ allowed login as root better
+ ssh pubkeys for root
2024-04-15 13:04:08 +02:00

27 lines
776 B
YAML

---
- name: Perform optional versionscheck
ansible.builtin.include_tasks:
file: 'versioncheck.yml'
when: submodules_versioncheck | bool
- name: Merge default and locale Users
ansible.builtin.set_fact:
_l3d_users__merged_users: "{{ l3d_users__default_users + l3d_users__local_users }}"
- name: Create ansible user with superuser permissions
ansible.builtin.include_tasks:
file: 'user_ansible.yml'
when: l3d_users__create_ansible | bool
- name: Create Groups and Users
ansible.builtin.include_tasks:
file: 'users.yml'
- name: Manage SSH public keys
ansible.builtin.include_tasks:
file: 'pubkeys.yml'
- name: Set SSH public Keys for root
ansible.builtin.include_tasks:
file: 'root_ssh.yml'
when: l3d_users__set_root_ssh_keys | bool