Skip to content
Snippets Groups Projects
Commit b7722a47 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

Missing admin passwords in location module.

Tests for module ipalocation failed due to missing ipaadmin_password.

Added the variable to the playbooks, and also fixed the examples and
documentation. Some playbooks had identation fixed to two spaces
instead of one for consistency with other modules.
parent 33db6537
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ Example playbook to make sure location "my_location1" is present: ...@@ -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: ...@@ -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 @@ ...@@ -6,5 +6,6 @@
tasks: tasks:
- name: Ensure location my_location1 is absent - name: Ensure location my_location1 is absent
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
state: absent state: absent
...@@ -6,4 +6,5 @@ ...@@ -6,4 +6,5 @@
tasks: tasks:
- name: Ensure location my_location1 is present - name: Ensure location my_location1 is present
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
...@@ -55,11 +55,13 @@ options: ...@@ -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,6 +9,7 @@ ...@@ -9,6 +9,7 @@
- name: Ensure location my_location1 is absent - name: Ensure location my_location1 is absent
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
state: absent state: absent
...@@ -18,18 +19,21 @@ ...@@ -18,18 +19,21 @@
- name: Ensure location my_location1 is present - name: Ensure location my_location1 is present
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 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:
ipaadmin_password: SomeADMINpassword
name: my_location1 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:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
description: My Location 1 description: My Location 1
register: result register: result
...@@ -37,6 +41,7 @@ ...@@ -37,6 +41,7 @@
- name: Ensure location my_location1 is present again with description - name: Ensure location my_location1 is present again with description
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
description: My Location 1 description: My Location 1
register: result register: result
...@@ -44,6 +49,7 @@ ...@@ -44,6 +49,7 @@
- name: Ensure location my_location1 is absent - name: Ensure location my_location1 is absent
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
state: absent state: absent
register: result register: result
...@@ -51,6 +57,7 @@ ...@@ -51,6 +57,7 @@
- name: Ensure location my_location1 is absent again - name: Ensure location my_location1 is absent again
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
state: absent state: absent
register: result register: result
...@@ -60,5 +67,6 @@ ...@@ -60,5 +67,6 @@
- name: Ensure location my_location1 is absent - name: Ensure location my_location1 is absent
ipalocation: ipalocation:
ipaadmin_password: SomeADMINpassword
name: my_location1 name: my_location1
state: absent state: absent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment