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

23 lines
603 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
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-10 17:48:58 +00:00
ipadnszone:
ipaadmin_password: '{{ ipaadmin_password }}'
name: '{{ internal_domain }}'
2020-12-11 07:39:15 +00:00
with_items: '{{ rdns }}'