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
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,9 @@
ipaapi_context: "{{ ipa_context | default(omit) }}"
pac_type: ""
- block:
- name: set maxhostname to 255
block:
- ipaconfig:
ipaconfig:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: 255
......@@ -221,16 +221,17 @@
register: result
failed_when: result.changed or result.failed
- block:
- name: set maxhostname to 77
block:
- ipaconfig:
ipaconfig:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: 77
register: result
failed_when: not result.changed or result.failed
- ipaconfig:
- name: set maxhostname to 77, again
ipaconfig:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: 77
......@@ -409,9 +410,9 @@
register: result
failed_when: not result.changed or result.failed
- block:
- name: reset maxhostname
block:
- ipaconfig:
ipaconfig:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
maxhostname: '{{ previousconfig.config.maxhostname | default(omit) }}'
......@@ -444,9 +445,9 @@
register: result
failed_when: result.changed or result.failed
- block:
- name: reset maxhostname
block:
- ipaconfig:
ipaconfig:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | 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