[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:
patchback[bot] 2023-02-16 06:42:27 +01:00 committed by GitHub
commit ec7f885e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
182 changed files with 770 additions and 770 deletions

View file

@ -34,7 +34,7 @@
name: gist
state: present
register: install_gem_result
ignore_errors: yes
ignore_errors: true
# when running as root on Fedora, '--install-dir' is set in the os defaults which is
# incompatible with '--user-install', we ignore this error for this case only
@ -79,7 +79,7 @@
gem:
name: gist
state: present
user_install: no
user_install: false
register: install_gem_result
- name: List gems
@ -115,7 +115,7 @@
name: gist
state: present
install_dir: "{{ remote_tmp_dir }}/gems"
ignore_errors: yes
ignore_errors: true
register: install_gem_fail_result
- debug:
@ -132,7 +132,7 @@
gem:
name: gist
state: present
user_install: no
user_install: false
install_dir: "{{ remote_tmp_dir }}/gems"
register: install_gem_result
@ -148,13 +148,13 @@
that:
- install_gem_result is changed
- gem_search.files[0].path is search('gist-[0-9.]+')
ignore_errors: yes
ignore_errors: true
- name: Remove a gem in a custom directory
gem:
name: gist
state: absent
user_install: no
user_install: false
install_dir: "{{ remote_tmp_dir }}/gems"
register: install_gem_result
@ -177,7 +177,7 @@
name: gist
state: present
bindir: "{{ remote_tmp_dir }}/custom_bindir"
norc: yes
norc: true
user_install: no # Avoid conflicts between --install-dir and --user-install when running as root on CentOS / Fedora / RHEL
register: install_gem_result
@ -197,7 +197,7 @@
name: gist
state: absent
bindir: "{{ remote_tmp_dir }}/custom_bindir"
norc: yes
norc: true
user_install: no # Avoid conflicts between --install-dir and --user-install when running as root on CentOS / Fedora / RHEL
register: install_gem_result