mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-16 10:41:24 +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.
34 lines
924 B
YAML
34 lines
924 B
YAML
---
|
|
# This builds out the initial users and groups for the rocky linux infra
|
|
- name: Create our initial users
|
|
hosts: ipaserver
|
|
become: false
|
|
gather_facts: false
|
|
vars_files:
|
|
- vars/vaults/encpass.yml
|
|
- vars/ipa/rdns.yml
|
|
- vars/ipa/fdns.yml
|
|
|
|
tasks:
|
|
- name: "Checking for user variables"
|
|
assert:
|
|
that:
|
|
- ipaadmin_password | mandatory
|
|
success_msg: "Required variables provided"
|
|
fail_msg: "We are missing ipa admin password"
|
|
|
|
- name: "Create Reverse Domains"
|
|
freeipa.ansible_freeipa.ipadnszone:
|
|
ipaadmin_password: '{{ ipaadmin_password }}'
|
|
name: '{{ item }}'
|
|
dynamic_update: true
|
|
with_items: '{{ rdns }}'
|
|
|
|
- name: "Create Forward Domains"
|
|
freeipa.ansible_freeipa.ipadnszone:
|
|
ipaadmin_password: '{{ ipaadmin_password }}'
|
|
name: '{{ item }}'
|
|
dynamic_update: true
|
|
with_items: '{{ fdns }}'
|
|
...
|