From 04eec6db27aa90d2b23ead7941aeb5889a7c6437 Mon Sep 17 00:00:00 2001 From: Stanislav German-Evtushenko Date: Sat, 19 Jun 2021 17:35:32 +0900 Subject: [PATCH] gem_module: Update Integration tests for bindir option Make sure gist is not installed system-wide prior the tests --- tests/integration/targets/gem/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/targets/gem/tasks/main.yml b/tests/integration/targets/gem/tasks/main.yml index 0771216983..17c840ff13 100644 --- a/tests/integration/targets/gem/tasks/main.yml +++ b/tests/integration/targets/gem/tasks/main.yml @@ -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