mono-infrastructure/ansible/playbooks/init-rocky-ipa-internal-dns.yml
2020-12-11 15:20:26 -07:00

24 lines
593 B
YAML

---
# 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
- vars/rdns.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"
ipadnszone:
ipaadmin_password: '{{ ipaadmin_password }}'
name: '{{ item }}'
with_items: '{{ rdns }}'