2020-12-10 07:33:09 +00:00
|
|
|
---
|
|
|
|
# This builds out the initial users and groups for the rocky linux infra
|
|
|
|
- name: Create our initial users
|
|
|
|
hosts: ipaserver
|
2021-01-15 04:28:47 +00:00
|
|
|
become: true
|
2020-12-21 05:05:52 +00:00
|
|
|
gather_facts: false
|
2020-12-10 07:33:09 +00:00
|
|
|
vars_files:
|
2021-01-03 05:18:47 +00:00
|
|
|
- vars/vaults/encpass.yml
|
|
|
|
- vars/ipa/users.yml
|
|
|
|
- vars/ipa/adminusers.yml
|
|
|
|
- vars/ipa/svcusers.yml
|
|
|
|
- vars/ipa/groups.yml
|
|
|
|
- vars/ipa/ipaprivs.yml
|
2020-12-10 07:33:09 +00:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: "Checking for user variables"
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- ipaadmin_password | mandatory
|
|
|
|
- users | mandatory
|
|
|
|
- ipagroups | mandatory
|
|
|
|
success_msg: "Required variables provided"
|
|
|
|
fail_msg: "We are missing users or ipa admin password"
|
|
|
|
|
|
|
|
- name: "Start users"
|
2020-12-16 01:26:57 +00:00
|
|
|
import_tasks: import-rockyusers.yml
|
2020-12-10 07:33:09 +00:00
|
|
|
|
|
|
|
- name: "Start groups"
|
2020-12-16 01:26:57 +00:00
|
|
|
import_tasks: import-rockygroups.yml
|
2020-12-10 07:33:09 +00:00
|
|
|
|
|
|
|
- name: "Start sudo for admins"
|
2020-12-16 01:26:57 +00:00
|
|
|
import_tasks: import-rockysudo.yml
|
2020-12-21 05:05:52 +00:00
|
|
|
|
|
|
|
- name: "Start privileges for services"
|
|
|
|
import_tasks: import-rockyipaprivs.yml
|
2021-08-30 05:02:24 +00:00
|
|
|
...
|