mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
config: 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:
@@ -11,5 +11,5 @@
|
|||||||
register: serverconfig
|
register: serverconfig
|
||||||
|
|
||||||
- name: Display current configuration.
|
- name: Display current configuration.
|
||||||
debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ serverconfig }}"
|
msg: "{{ serverconfig }}"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
# Retrieve current configuration.
|
# Retrieve current configuration.
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
register: previousconfig
|
register: previousconfig
|
||||||
|
|
||||||
- name: Display current configuration.
|
- name: Display current configuration.
|
||||||
debug:
|
ansible.builtin.debug:
|
||||||
var: previousconfig
|
var: previousconfig
|
||||||
|
|
||||||
# setup environment.
|
# setup environment.
|
||||||
@@ -481,7 +481,7 @@
|
|||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: "CA-Renewal server warning."
|
- name: "CA-Renewal server warning."
|
||||||
debug:
|
ansible.builtin.debug:
|
||||||
msg: "Due to a test failure, IPA CA-Renewal Server might not be correctly be set. Check your configuration."
|
msg: "Due to a test failure, IPA CA-Renewal Server might not be correctly be set. Check your configuration."
|
||||||
|
|
||||||
always:
|
always:
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -26,13 +26,13 @@
|
|||||||
# in upstream CI.
|
# in upstream CI.
|
||||||
|
|
||||||
- name: Test config using client context, in client host.
|
- name: Test config using client context, in client host.
|
||||||
import_playbook: test_config.yml
|
ansible.builtin.import_playbook: test_config.yml
|
||||||
when: groups['ipaclients']
|
when: groups['ipaclients']
|
||||||
vars:
|
vars:
|
||||||
ipa_test_host: ipaclients
|
ipa_test_host: ipaclients
|
||||||
|
|
||||||
- name: Test config using client context, in server host.
|
- name: Test config using client context, in server host.
|
||||||
import_playbook: test_config.yml
|
ansible.builtin.import_playbook: test_config.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
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Set FreeIPA facts.
|
- name: Set FreeIPA facts.
|
||||||
include_tasks: ../env_freeipa_facts.yml
|
ansible.builtin.include_tasks: ../env_freeipa_facts.yml
|
||||||
|
|
||||||
# GET CURRENT CONFIG
|
# GET CURRENT CONFIG
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user