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
|
|
|
|
vars_files:
|
|
|
|
- vars/encpass.yml
|
2020-12-11 07:39:15 +00:00
|
|
|
- vars/rdns.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 }}'
|
2020-12-11 07:39:15 +00:00
|
|
|
with_items: '{{ rdns }}'
|