mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 14:20:04 -07:00
[PR #6152/11c7611c backport][stable-6] More true/false normalization (#6153)
More true/false normalization (#6152)
* More true/false normalization.
* Boolean do not need explicit choices.
* One more.
* Fix type argument.
(cherry picked from commit 11c7611ced
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
186b4200f6
commit
47514e1401
48 changed files with 203 additions and 219 deletions
|
@ -19,8 +19,8 @@
|
|||
|
||||
- include_tasks: tests.yml
|
||||
with_nested:
|
||||
- [ True, False ] # with_link
|
||||
- [ True, False ] # with_alternatives
|
||||
- [ true, false ] # with_link
|
||||
- [ true, false ] # with_alternatives
|
||||
- [ 'auto', 'manual' ] # mode
|
||||
loop_control:
|
||||
loop_var: test_conf
|
||||
|
@ -34,7 +34,7 @@
|
|||
- include_tasks: tests_set_priority.yml
|
||||
with_sequence: start=3 end=4
|
||||
vars:
|
||||
with_alternatives: True
|
||||
with_alternatives: true
|
||||
mode: auto
|
||||
|
||||
- block:
|
||||
|
@ -44,7 +44,7 @@
|
|||
- include_tasks: tests_set_priority.yml
|
||||
with_sequence: start=3 end=4
|
||||
vars:
|
||||
with_alternatives: False
|
||||
with_alternatives: false
|
||||
mode: auto
|
||||
|
||||
# Test that path is checked: alternatives must fail when path is nonexistent
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
name: dummy
|
||||
path: '/non/existent/path/there'
|
||||
link: '/usr/bin/dummy'
|
||||
ignore_errors: True
|
||||
ignore_errors: true
|
||||
register: alternative
|
||||
|
||||
- name: Check previous task failed
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
- name: Execute the current dummysubcmd command
|
||||
command: dummysubcmd
|
||||
register: cmd
|
||||
ignore_errors: True
|
||||
ignore_errors: true
|
||||
|
||||
- name: Ensure that the subcommand is gone
|
||||
assert:
|
||||
|
@ -166,7 +166,7 @@
|
|||
- name: Execute the current dummysubcmd command
|
||||
command: dummysubcmd
|
||||
register: cmd
|
||||
ignore_errors: True
|
||||
ignore_errors: true
|
||||
|
||||
- name: Ensure that the subcommand is gone
|
||||
assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue