mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 13:23:14 +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:
|
||||
- ipalocation:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
description: My Location 1
|
||||
```
|
||||
@@ -64,6 +65,7 @@ Example playbook to make sure location "my_location1" is absent:
|
||||
|
||||
tasks:
|
||||
- ipalocation:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
```
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
tasks:
|
||||
- name: Ensure location my_location1 is absent
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
state: absent
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
tasks:
|
||||
- name: Ensure location my_location1 is present
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
|
||||
@@ -55,11 +55,13 @@ options:
|
||||
EXAMPLES = """
|
||||
# Ensure location my_location1 is present
|
||||
- ipalocation:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
description: My location 1
|
||||
|
||||
# Ensure location my_location1 is absent
|
||||
- ipalocation:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
"""
|
||||
|
||||
@@ -9,8 +9,9 @@
|
||||
|
||||
- name: Ensure location my_location1 is absent
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
state: absent
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
|
||||
# CREATE TEST ITEMS
|
||||
|
||||
@@ -18,41 +19,47 @@
|
||||
|
||||
- name: Ensure location my_location1 is present
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
register: result
|
||||
failed_when: not result.changed or result.failed
|
||||
|
||||
- name: Ensure location my_location1 is present again
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
register: result
|
||||
failed_when: result.changed or result.failed
|
||||
|
||||
- name: Ensure location my_location1 is present with description
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
description: My Location 1
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
description: My Location 1
|
||||
register: result
|
||||
failed_when: not result.changed or result.failed
|
||||
|
||||
- name: Ensure location my_location1 is present again with description
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
description: My Location 1
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
description: My Location 1
|
||||
register: result
|
||||
failed_when: result.changed or result.failed
|
||||
|
||||
- name: Ensure location my_location1 is absent
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
state: absent
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
register: result
|
||||
failed_when: not result.changed or result.failed
|
||||
|
||||
- name: Ensure location my_location1 is absent again
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
state: absent
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
register: result
|
||||
failed_when: result.changed or result.failed
|
||||
|
||||
@@ -60,5 +67,6 @@
|
||||
|
||||
- name: Ensure location my_location1 is absent
|
||||
ipalocation:
|
||||
name: my_location1
|
||||
state: absent
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: my_location1
|
||||
state: absent
|
||||
|
||||
Reference in New Issue
Block a user