2020-12-10 17:48:58 +00:00
|
|
|
---
|
|
|
|
# This builds out the initial users and groups for the rocky linux infra
|
|
|
|
- name: Create our initial users
|
|
|
|
hosts: ipaserver
|
|
|
|
become: false
|
2020-12-21 05:05:52 +00:00
|
|
|
gather_facts: false
|
2020-12-10 17:48:58 +00:00
|
|
|
vars_files:
|
2021-01-03 05:18:47 +00:00
|
|
|
- vars/vaults/encpass.yml
|
|
|
|
- vars/ipa/rdns.yml
|
|
|
|
- vars/ipa/fdns.yml
|
2020-12-10 17:48:58 +00:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: "Checking for user variables"
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- ipaadmin_password | mandatory
|
|
|
|
success_msg: "Required variables provided"
|
|
|
|
fail_msg: "We are missing ipa admin password"
|
|
|
|
|
2020-12-11 07:39:15 +00:00
|
|
|
- name: "Create Reverse Domains"
|
2020-12-12 08:16:44 +00:00
|
|
|
freeipa.ansible_freeipa.ipadnszone:
|
2020-12-10 17:48:58 +00:00
|
|
|
ipaadmin_password: '{{ ipaadmin_password }}'
|
2020-12-11 22:20:26 +00:00
|
|
|
name: '{{ item }}'
|
2021-01-10 10:08:32 +00:00
|
|
|
dynamic_update: true
|
2020-12-11 07:39:15 +00:00
|
|
|
with_items: '{{ rdns }}'
|
2020-12-23 10:52:34 +00:00
|
|
|
|
|
|
|
- name: "Create Forward Domains"
|
|
|
|
freeipa.ansible_freeipa.ipadnszone:
|
|
|
|
ipaadmin_password: '{{ ipaadmin_password }}'
|
|
|
|
name: '{{ item }}'
|
2021-01-10 10:08:32 +00:00
|
|
|
dynamic_update: true
|
2020-12-23 10:52:34 +00:00
|
|
|
with_items: '{{ fdns }}'
|
2021-08-30 05:02:24 +00:00
|
|
|
...
|