mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-10-31 20:21:23 +00:00
fcdf86b31c
This commit appends the README.md to state that yaml files should start with `---` and end with `...`. This also addresses some linting warnings that were not appearing during pre-commit on local system.
37 lines
947 B
YAML
37 lines
947 B
YAML
---
|
|
# This builds out the initial users and groups for the rocky linux infra
|
|
- name: Create our initial users
|
|
hosts: ipaserver
|
|
become: true
|
|
gather_facts: false
|
|
vars_files:
|
|
- vars/vaults/encpass.yml
|
|
- vars/ipa/users.yml
|
|
- vars/ipa/adminusers.yml
|
|
- vars/ipa/svcusers.yml
|
|
- vars/ipa/groups.yml
|
|
- vars/ipa/ipaprivs.yml
|
|
|
|
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"
|
|
import_tasks: import-rockyusers.yml
|
|
|
|
- name: "Start groups"
|
|
import_tasks: import-rockygroups.yml
|
|
|
|
- name: "Start sudo for admins"
|
|
import_tasks: import-rockysudo.yml
|
|
|
|
- name: "Start privileges for services"
|
|
import_tasks: import-rockyipaprivs.yml
|
|
...
|