mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +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
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
---
|
|
- name: Cleanup environment.
|
|
ansible.builtin.import_tasks: env_cleanup.yml
|
|
|
|
- name: Ensure test user is present.
|
|
ipauser:
|
|
ipaadmin_password: SomeADMINpassword
|
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
|
users:
|
|
- name: user01
|
|
first: First
|
|
last: Last
|
|
- name: user02
|
|
first: First
|
|
last: Last
|
|
- name: user03
|
|
first: First
|
|
last: Last
|
|
|
|
- name: Ensure test group is present.
|
|
ipagroup:
|
|
ipaadmin_password: SomeADMINpassword
|
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
|
name: "{{ item }}"
|
|
with_items:
|
|
- group01
|
|
- group02
|
|
|
|
- name: Ensure test host is present.
|
|
ipahost:
|
|
ipaadmin_password: SomeADMINpassword
|
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
|
name: "{{ item }}"
|
|
force: yes
|
|
with_items:
|
|
- "{{ host1_fqdn }}"
|
|
- "{{ host2_fqdn }}"
|
|
|
|
- name: Ensure test hostgroup is present.
|
|
ipahostgroup:
|
|
ipaadmin_password: SomeADMINpassword
|
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
|
name: "{{ item[0] }}"
|
|
host:
|
|
- "{{ item[1] }}"
|
|
with_nested:
|
|
- [hostgroup01, hostgroup02]
|
|
- ["{{ host1_fqdn }}", "{{ host2_fqdn }}"]
|
|
|
|
- name: Ensure test service is present.
|
|
ipaservice:
|
|
ipaadmin_password: SomeADMINpassword
|
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
|
name: "{{ item }}"
|
|
force: yes
|
|
with_items:
|
|
- "service01/{{ host1_fqdn }}"
|
|
- "service02/{{ host2_fqdn }}"
|