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

24 lines
637 B
YAML
Raw Normal View History

2024-02-13 19:37:55 +01:00
---
- name: Perform optional versionscheck
ansible.builtin.include_tasks:
file: 'versioncheck.yml'
2024-02-13 20:17:35 +01:00
when: submodules_versioncheck | bool
2024-02-13 19:37:55 +01:00
- name: Merge default and locale Users
ansible.builtin.set_fact:
2024-02-14 21:25:00 +01:00
_l3d_users__merged_users: "{{ l3d_users__default_users + l3d_users__local_users }}"
2024-02-13 20:17:35 +01:00
- name: Create ansible user with superuser permissions
ansible.builtin.include_tasks:
file: 'user_ansible.yml'
2024-02-14 21:25:00 +01:00
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'