From fdd4b19b1830bc3350eae61fe36fa837c0ecca65 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Mon, 14 Feb 2022 12:57:32 +0100 Subject: [PATCH] tests/config/test_config.yml: Use named tasks The unnamed tasks have been reported as issues by new ansible-lint. --- tests/config/test_config.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/config/test_config.yml b/tests/config/test_config.yml index c3f26872..cac579d4 100644 --- a/tests/config/test_config.yml +++ b/tests/config/test_config.yml @@ -56,9 +56,9 @@ ipaapi_context: "{{ ipa_context | default(omit) }}" pac_type: "" - - name: set maxhostname to 255 - block: - - ipaconfig: + - block: + - name: set maxhostname to 255 + 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 - - name: set maxhostname to 77 - block: - - ipaconfig: + - block: + - name: set maxhostname to 77 + 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 - - name: reset maxhostname - block: - - ipaconfig: + - block: + - name: reset maxhostname + 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 - - name: reset maxhostname - block: - - ipaconfig: + - block: + - name: reset maxhostname + ipaconfig: ipaadmin_password: SomeADMINpassword ipaapi_context: "{{ ipa_context | default(omit) }}" maxhostname: '{{ previousconfig.config.maxhostname | default(omit) }}' -- GitLab