mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[PR #5996/24efe9ee backport][stable-6] Normalize bools in tests (#5997)
Normalize bools in tests (#5996)
* Normalize bools in tests.
* Fix typo.
(cherry picked from commit 24efe9ee9a)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
list_all: true
|
||||
state: absent
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: assert git_config failed
|
||||
assert:
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
- name: verify that git is installed so this test can continue
|
||||
command: which git
|
||||
register: git_installed
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: get git version, only newer than {{git_version_supporting_includes}} has includes option
|
||||
shell: "git --version | grep 'git version' | sed 's/git version //'"
|
||||
register: git_version
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
...
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
name: "{{ option_name }}"
|
||||
scope: "{{ option_scope }}"
|
||||
state: absent
|
||||
check_mode: yes
|
||||
check_mode: true
|
||||
register: unset_result
|
||||
|
||||
- name: getting value
|
||||
|
||||
Reference in New Issue
Block a user