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

group: 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 d6658347
No related branches found
No related tags found
No related merge requests found
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
tasks: tasks:
# setup # setup
- include_tasks: ../env_freeipa_facts.yml - ansible.builtin.include_tasks: ../env_freeipa_facts.yml
# GET FQDN_AT_DOMAIN # GET FQDN_AT_DOMAIN
- name: Get fqdn_at_domain - name: Get fqdn_at_domain
set_fact: ansible.builtin.set_fact:
fqdn_at_domain: "{{ ansible_facts['fqdn'] + '@' + ipaserver_realm }}" fqdn_at_domain: "{{ ansible_facts['fqdn'] + '@' + ipaserver_realm }}"
# CLEANUP TEST ITEMS # CLEANUP TEST ITEMS
......
...@@ -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 group using client context, in client host. - name: Test group using client context, in client host.
import_playbook: test_group.yml ansible.builtin.import_playbook: test_group.yml
when: groups['ipaclients'] when: groups['ipaclients']
vars: vars:
ipa_test_host: ipaclients ipa_test_host: ipaclients
- name: Test group using client context, in server host. - name: Test group using client context, in server host.
import_playbook: test_group.yml ansible.builtin.import_playbook: test_group.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
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
tasks: tasks:
- include_tasks: ../env_freeipa_facts.yml - ansible.builtin.include_tasks: ../env_freeipa_facts.yml
- block: - block:
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
ad_domain: "{{ test_ad_domain | default('ad.ipa.test') }}" ad_domain: "{{ test_ad_domain | default('ad.ipa.test') }}"
tasks: tasks:
- include_tasks: ../env_freeipa_facts.yml - ansible.builtin.include_tasks: ../env_freeipa_facts.yml
- block: - block:
- name: Create idoverrideuser. - name: Create idoverrideuser.
shell: | ansible.builtin.shell: |
kinit -c idoverride_cache admin <<< SomeADMINpassword kinit -c idoverride_cache admin <<< SomeADMINpassword
ipa idoverrideuser-add "Default Trust View" {{ ad_user }} ipa idoverrideuser-add "Default Trust View" {{ ad_user }}
kdestroy -A -q -c idoverride_cache kdestroy -A -q -c idoverride_cache
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
always: always:
- name: Remove idoverrideuser. - name: Remove idoverrideuser.
shell: | ansible.builtin.shell: |
kinit -c idoverride_cache admin <<< SomeADMINpassword kinit -c idoverride_cache admin <<< SomeADMINpassword
ipa idoverrideuser-del "Default Trust View" {{ ad_user }} ipa idoverrideuser-del "Default Trust View" {{ ad_user }}
kdestroy -A -q -c idoverride_cache kdestroy -A -q -c idoverride_cache
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
gather_facts: false gather_facts: false
tasks: tasks:
- include_tasks: ../env_freeipa_facts.yml - ansible.builtin.include_tasks: ../env_freeipa_facts.yml
- name: Tests requiring IPA version 4.8.4+ - name: Tests requiring IPA version 4.8.4+
block: block:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment