mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 19:34:45 +00:00
tests/config/test_config.yml: Use named tasks
The unnamed tasks have been reported as issues by new ansible-lint.
This commit is contained in:
@@ -56,9 +56,9 @@
|
|||||||
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
ipaapi_context: "{{ ipa_context | default(omit) }}"
|
||||||
pac_type: ""
|
pac_type: ""
|
||||||
|
|
||||||
- name: set maxhostname to 255
|
- block:
|
||||||
block:
|
- name: set maxhostname to 255
|
||||||
- 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 @@
|
|||||||
register: result
|
register: result
|
||||||
failed_when: result.changed or result.failed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: set maxhostname to 77
|
- block:
|
||||||
block:
|
- name: set maxhostname to 77
|
||||||
- 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 @@
|
|||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed or result.failed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: reset maxhostname
|
- block:
|
||||||
block:
|
- name: reset maxhostname
|
||||||
- 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 @@
|
|||||||
register: result
|
register: result
|
||||||
failed_when: result.changed or result.failed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: reset maxhostname
|
- block:
|
||||||
block:
|
- name: reset maxhostname
|
||||||
- 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) }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user