mono-infrastructure/ansible/playbooks/init-rocky-ipa-internal-dns.yml

34 lines
924 B
YAML
Raw Normal View History

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
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"
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 }}'
...