gem_module: Update Integration tests for bindir option

Make sure gist is not installed system-wide prior the tests
pull/2837/head
Stanislav German-Evtushenko 2021-06-19 17:35:32 +09:00
parent 4873377d06
commit 04eec6db27
1 changed files with 6 additions and 0 deletions

View File

@ -180,6 +180,12 @@
- gem_search.files | length == 0
# Custom directory for executables (--bindir)
- name: Ensure gem is not installed
gem:
name: gist
state: absent
user_install: no # Avoid conflicts between --install-dir and --user-install when running as root on CentOS / Fedora / RHEL
- name: Install gem with custom bindir
gem:
name: gist