mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 22:34:40 +00:00
Merge pull request #351 from rjeffman/fix_password_location_tests
Missing admin passwords in location module.
This commit is contained in:
@@ -49,6 +49,7 @@ Example playbook to make sure location "my_location1" is present:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipalocation:
|
- ipalocation:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: my_location1
|
name: my_location1
|
||||||
description: My Location 1
|
description: My Location 1
|
||||||
```
|
```
|
||||||
@@ -64,6 +65,7 @@ Example playbook to make sure location "my_location1" is absent:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipalocation:
|
- ipalocation:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: my_location1
|
name: my_location1
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -6,5 +6,6 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Ensure location my_location1 is absent
|
- name: Ensure location my_location1 is absent
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
state: absent
|
name: my_location1
|
||||||
|
state: absent
|
||||||
|
|||||||
@@ -6,4 +6,5 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Ensure location my_location1 is present
|
- name: Ensure location my_location1 is present
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
name: my_location1
|
||||||
|
|||||||
@@ -55,11 +55,13 @@ options:
|
|||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# Ensure location my_location1 is present
|
# Ensure location my_location1 is present
|
||||||
- ipalocation:
|
- ipalocation:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: my_location1
|
name: my_location1
|
||||||
description: My location 1
|
description: My location 1
|
||||||
|
|
||||||
# Ensure location my_location1 is absent
|
# Ensure location my_location1 is absent
|
||||||
- ipalocation:
|
- ipalocation:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: my_location1
|
name: my_location1
|
||||||
state: absent
|
state: absent
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -9,8 +9,9 @@
|
|||||||
|
|
||||||
- name: Ensure location my_location1 is absent
|
- name: Ensure location my_location1 is absent
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
state: absent
|
name: my_location1
|
||||||
|
state: absent
|
||||||
|
|
||||||
# CREATE TEST ITEMS
|
# CREATE TEST ITEMS
|
||||||
|
|
||||||
@@ -18,41 +19,47 @@
|
|||||||
|
|
||||||
- name: Ensure location my_location1 is present
|
- name: Ensure location my_location1 is present
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
name: my_location1
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed or result.failed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Ensure location my_location1 is present again
|
- name: Ensure location my_location1 is present again
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
name: my_location1
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed or result.failed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Ensure location my_location1 is present with description
|
- name: Ensure location my_location1 is present with description
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
description: My Location 1
|
name: my_location1
|
||||||
|
description: My Location 1
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed or result.failed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Ensure location my_location1 is present again with description
|
- name: Ensure location my_location1 is present again with description
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
description: My Location 1
|
name: my_location1
|
||||||
|
description: My Location 1
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed or result.failed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Ensure location my_location1 is absent
|
- name: Ensure location my_location1 is absent
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
state: absent
|
name: my_location1
|
||||||
|
state: absent
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed or result.failed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Ensure location my_location1 is absent again
|
- name: Ensure location my_location1 is absent again
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
state: absent
|
name: my_location1
|
||||||
|
state: absent
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed or result.failed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
@@ -60,5 +67,6 @@
|
|||||||
|
|
||||||
- name: Ensure location my_location1 is absent
|
- name: Ensure location my_location1 is absent
|
||||||
ipalocation:
|
ipalocation:
|
||||||
name: my_location1
|
ipaadmin_password: SomeADMINpassword
|
||||||
state: absent
|
name: my_location1
|
||||||
|
state: absent
|
||||||
|
|||||||
Reference in New Issue
Block a user