Skip to content
Snippets Groups Projects
Commit 470d0ddc authored by Thomas Woerner's avatar Thomas Woerner
Browse files

dnszone: Use FQCN for ansible.builtin

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
parent 2e707a48
No related branches found
No related tags found
No related merge requests found
...@@ -11,5 +11,5 @@ ...@@ -11,5 +11,5 @@
register: result register: result
- name: Zone name inferred from `name_from_ip` - name: Zone name inferred from `name_from_ip`
debug: ansible.builtin.debug:
msg: "Zone created: {{ result.dnszone.name }}" msg: "Zone created: {{ result.dnszone.name }}"
--- ---
- name: Cleanup test environment. - name: Cleanup test environment.
include_tasks: env_cleanup.yml ansible.builtin.include_tasks: env_cleanup.yml
--- ---
- name: Cleanup test environment. - name: Cleanup test environment.
include_tasks: env_cleanup.yml ansible.builtin.include_tasks: env_cleanup.yml
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Setup # Setup
- name: Setup testing environment - name: Setup testing environment
include_tasks: env_setup.yml ansible.builtin.include_tasks: env_setup.yml
# Tests # Tests
- name: Check if zone is present, when in shouldn't be. - name: Check if zone is present, when in shouldn't be.
...@@ -267,4 +267,4 @@ ...@@ -267,4 +267,4 @@
# Teardown # Teardown
- name: Teardown testing environment - name: Teardown testing environment
include_tasks: env_teardown.yml ansible.builtin.include_tasks: env_teardown.yml
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
tasks: tasks:
- name: Include FreeIPA facts. - name: Include FreeIPA facts.
include_tasks: ../env_freeipa_facts.yml ansible.builtin.include_tasks: ../env_freeipa_facts.yml
# Test will only be executed if host is not a server. # Test will only be executed if host is not a server.
- name: Execute with server context in the client. - name: Execute with server context in the client.
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
# in upstream CI. # in upstream CI.
- name: Test dnszone using client context, in client host. - name: Test dnszone using client context, in client host.
import_playbook: test_dnszone.yml ansible.builtin.import_playbook: test_dnszone.yml
when: groups['ipaclients'] when: groups['ipaclients']
vars: vars:
ipa_test_host: ipaclients ipa_test_host: ipaclients
- name: Test dnszone using client context, in server host. - name: Test dnszone using client context, in server host.
import_playbook: test_dnszone.yml ansible.builtin.import_playbook: test_dnszone.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars: vars:
ipa_context: client ipa_context: client
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Setup # Setup
- name: Setup testing environment - name: Setup testing environment
include_tasks: env_setup.yml ansible.builtin.include_tasks: env_setup.yml
- name: Ensure zone is present. - name: Ensure zone is present.
ipadnszone: ipadnszone:
...@@ -291,4 +291,4 @@ ...@@ -291,4 +291,4 @@
# Teardown # Teardown
- name: Teardown testing environment - name: Teardown testing environment
include_tasks: env_teardown.yml ansible.builtin.include_tasks: env_teardown.yml
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Setup # Setup
- name: Setup testing environment - name: Setup testing environment
include_tasks: env_setup.yml ansible.builtin.include_tasks: env_setup.yml
# Tests # Tests
- name: Ensure zone exists for reverse IP. - name: Ensure zone exists for reverse IP.
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
register: ipv6_zone register: ipv6_zone
failed_when: not ipv6_zone.changed or ipv6_zone.failed failed_when: not ipv6_zone.changed or ipv6_zone.failed
# - debug: # - ansible.builtin.debug:
# msg: "{{ipv6_zone}}" # msg: "{{ipv6_zone}}"
- name: Ensure ipv6 zone was created. - name: Ensure ipv6 zone was created.
...@@ -95,4 +95,4 @@ ...@@ -95,4 +95,4 @@
# Teardown # Teardown
- name: Teardown testing environment - name: Teardown testing environment
include_tasks: env_teardown.yml ansible.builtin.include_tasks: env_teardown.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment