mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 03:14:42 +00:00
templates: Allow execution of plugins in an IPA client host.
Modify templates to create the basic tests for `ipaapi_context: client`.
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
---
|
||||
- name: Test $name
|
||||
hosts: ipaserver
|
||||
hosts: "{{ ipa_test_host | default('ipaserver') }}"
|
||||
# Change "become" or "gather_facts" to "yes",
|
||||
# if you test playbook requires any.
|
||||
become: no
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
|
||||
@@ -10,6 +13,7 @@
|
||||
- name: Ensure $name NAME is absent
|
||||
ipa$name:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||
name: NAME
|
||||
state: absent
|
||||
|
||||
@@ -28,6 +32,7 @@
|
||||
- name: Ensure $name NAME is present again
|
||||
ipa$name:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||
name: NAME
|
||||
# Add needed parameters here
|
||||
register: result
|
||||
@@ -38,6 +43,7 @@
|
||||
- name: Ensure $name NAME is absent
|
||||
ipa$name:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||
name: NAME
|
||||
state: absent
|
||||
register: result
|
||||
@@ -46,6 +52,7 @@
|
||||
- name: Ensure $name NAME is absent again
|
||||
ipa$name:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||
name: NAME
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
Reference in New Issue
Block a user