Skip to content
Snippets Groups Projects
Commit fdd4b19b authored by Thomas Woerner's avatar Thomas Woerner
Browse files

tests/config/test_config.yml: Use named tasks

The unnamed tasks have been reported as issues by new ansible-lint.
parent dc62744f
Branches
Tags
No related merge requests found
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
ipaapi_context: "{{ ipa_context | default(omit) }}" ipaapi_context: "{{ ipa_context | default(omit) }}"
pac_type: "" pac_type: ""
- block:
- name: set maxhostname to 255 - name: set maxhostname to 255
block: ipaconfig:
- ipaconfig:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}" ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: 255 maxhostname: 255
...@@ -221,16 +221,17 @@ ...@@ -221,16 +221,17 @@
register: result register: result
failed_when: result.changed or result.failed failed_when: result.changed or result.failed
- block:
- name: set maxhostname to 77 - name: set maxhostname to 77
block: ipaconfig:
- ipaconfig:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}" ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: 77 maxhostname: 77
register: result register: result
failed_when: not result.changed or result.failed failed_when: not result.changed or result.failed
- ipaconfig: - name: set maxhostname to 77, again
ipaconfig:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}" ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: 77 maxhostname: 77
...@@ -409,9 +410,9 @@ ...@@ -409,9 +410,9 @@
register: result register: result
failed_when: not result.changed or result.failed failed_when: not result.changed or result.failed
- block:
- name: reset maxhostname - name: reset maxhostname
block: ipaconfig:
- ipaconfig:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}" ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: '{{ previousconfig.config.maxhostname | default(omit) }}' maxhostname: '{{ previousconfig.config.maxhostname | default(omit) }}'
...@@ -444,9 +445,9 @@ ...@@ -444,9 +445,9 @@
register: result register: result
failed_when: result.changed or result.failed failed_when: result.changed or result.failed
- block:
- name: reset maxhostname - name: reset maxhostname
block: ipaconfig:
- ipaconfig:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}" ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: '{{ previousconfig.config.maxhostname | default(omit) }}' maxhostname: '{{ previousconfig.config.maxhostname | default(omit) }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment