mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
Merge pull request #1335 from rjeffman/ipagroup_fix_1
ipagroup: Fix management of AD objects
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: Test group
|
||||
hosts: "{{ ipa_test_host | default('ipaserver') }}"
|
||||
become: true
|
||||
gather_facts: true
|
||||
become: false
|
||||
gather_facts: false
|
||||
module_defaults:
|
||||
ipauser:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
@@ -10,6 +10,9 @@
|
||||
ipagroup:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||
ipaservice:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||
|
||||
tasks:
|
||||
# setup
|
||||
@@ -51,6 +54,16 @@
|
||||
register: result
|
||||
failed_when: not result.changed or result.failed
|
||||
|
||||
- name: Ensure test service HTTP is present
|
||||
ipaservice:
|
||||
name: "{{ 'HTTP/' + fqdn_at_domain }}"
|
||||
notify: Cleanup http service
|
||||
|
||||
- name: Ensure test service LDAP is present
|
||||
ipaservice:
|
||||
name: "{{ 'ldap/' + fqdn_at_domain }}"
|
||||
notify: Cleanup ldap service
|
||||
|
||||
# TESTS
|
||||
|
||||
- name: Ensure group1 is present
|
||||
@@ -437,3 +450,16 @@
|
||||
state: absent
|
||||
register: result
|
||||
failed_when: not result.changed or result.failed
|
||||
|
||||
# ansible-lint is complaining on the use of 'when' and requiring
|
||||
# the use of handlers.
|
||||
handlers:
|
||||
- name: Cleanup http service
|
||||
ipaservice:
|
||||
name: "{{ 'HTTP/' + fqdn_at_domain }}"
|
||||
state: absent
|
||||
|
||||
- name: Cleanup ldap service
|
||||
ipaservice:
|
||||
name: "{{ 'ldap/' + fqdn_at_domain }}"
|
||||
state: absent
|
||||
|
||||
Reference in New Issue
Block a user