mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 18:55:53 +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
21 lines
874 B
YAML
21 lines
874 B
YAML
---
|
|
# Set common vars and facts for test.
|
|
- name: Set IPv4 address prefix.
|
|
ansible.builtin.set_fact:
|
|
ipv4_prefix: "{{ ansible_facts['default_ipv4'].address.split('.')[:-1] |
|
|
join('.') }}"
|
|
ipv4_reverse: "{{ ansible_facts['default_ipv4'].address.split('.')[:-1] |
|
|
reverse |
|
|
join('.') }}"
|
|
|
|
- name: Set zone prefixes.
|
|
ansible.builtin.set_fact:
|
|
testzone: 'testzone.test'
|
|
safezone: 'safezone.test'
|
|
zone_ipv6_reverse: "ip6.arpa."
|
|
zone_ipv6_reverse_workaround: "d.f.ip6.arpa."
|
|
zone_prefix_reverse: "in-addr.arpa."
|
|
zone_prefix_reverse_24: "{{ ipv4_reverse.split('.')[:] | join ('.') }}.in-addr.arpa."
|
|
zone_prefix_reverse_16: "{{ ipv4_reverse.split('.')[1:] | join ('.') }}.in-addr.arpa."
|
|
zone_prefix_reverse_8: "{{ ipv4_reverse.split('.')[2:] | join ('.') }}.in-addr.arpa."
|