mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Use Fully Qualified Collection Name (FQCN) for ansible builtins. This is ansible.builtin.set_fact instead of set_fact for example and aplies for all actions that are part of ansible.builtin. All the replaced ansible.builtins: assert, command, copy, debug, fail, fetch, file, import_playbook, import_tasks, include_role, include_tasks, include_vars, package, set_fact, shell, slurp, stat, systemd
16 lines
396 B
YAML
16 lines
396 B
YAML
---
|
|
- name: Playbook to ensure DNS zone exist
|
|
hosts: ipaserver
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Ensure zone exist, finding zone name from IP address.
|
|
ipadnszone:
|
|
ipaadmin_password: SomeADMINpassword
|
|
name_from_ip: 10.1.2.3/24
|
|
register: result
|
|
|
|
- name: Zone name inferred from `name_from_ip`
|
|
ansible.builtin.debug:
|
|
msg: "Zone created: {{ result.dnszone.name }}"
|