role: 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
This commit is contained in:
Thomas Woerner
2022-12-20 13:52:36 +01:00
parent 45baf5c108
commit f2a0edeb25
7 changed files with 26 additions and 26 deletions

View File

@@ -6,10 +6,10 @@
tasks:
- name: Set environment facts.
import_tasks: env_facts.yml
ansible.builtin.import_tasks: env_facts.yml
- name: Setup environment.
import_tasks: env_setup.yml
ansible.builtin.import_tasks: env_setup.yml
- name: Add role.
iparole:
@@ -41,7 +41,7 @@
failed_when: result.failed or not result.changed
- name: Verify role privileges.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -71,7 +71,7 @@
failed_when: result.failed or not result.changed
- name: Verify role users.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -95,7 +95,7 @@
failed_when: result.failed or not result.changed
- name: Verify role group.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -119,7 +119,7 @@
failed_when: result.failed or not result.changed
- name: Verify role hosts.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -145,7 +145,7 @@
failed_when: result.failed or not result.changed
- name: Verify role hostgroups.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -169,7 +169,7 @@
failed_when: result.failed or not result.changed
- name: Verify role services.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -197,7 +197,7 @@
failed_when: result.failed or not result.changed
- name: Verify role services.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -225,7 +225,7 @@
failed_when: result.failed or not result.changed
- name: Verify role services.
shell:
ansible.builtin.shell:
cmd: |
echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
@@ -256,4 +256,4 @@
# cleanup
- name: Cleanup environment.
include_tasks: env_cleanup.yml
ansible.builtin.include_tasks: env_cleanup.yml