From bb92f3720a1aad09647fc334a36fe182c52cb913 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 10 Nov 2023 14:31:42 -0500 Subject: [PATCH] add version to venv dir add virtualenv_python to call 3.9 add python39 and git to list of packages to install --- test-lint-rhel8.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test-lint-rhel8.yml b/test-lint-rhel8.yml index 7dd8b05..a95cd83 100644 --- a/test-lint-rhel8.yml +++ b/test-lint-rhel8.yml @@ -6,7 +6,7 @@ vars: ansible_lint_vers : "6.13.1" - ansible_lint_venv : /tmp/ansible-lint-venv + ansible_lint_venv : "/tmp/ansible-lint-venv-{{ ansible_lint_vers }}" git_repo_to_lint : https://gitea.thezengarden.net/chris/ansible-lint-poc.git lint_work_dir : /tmp/lint_repository @@ -15,6 +15,8 @@ - name: Ensure virtualenv command is present ansible.builtin.package: name: + - python39 + - git - virtualenv state: present @@ -22,8 +24,9 @@ - name: Create VirtualEnv and Install ansible-lint ansible.builtin.pip: name: ansible-lint - #name: "ansible-lint=={{ ansible_lint_vers }}" + # name: "ansible-lint=={{ ansible_lint_vers }}" virtualenv: "{{ ansible_lint_venv }}" + virtualenv_python: python3.9 - name: Ansible Lint Debug Information