From dbcc2156aca8b62aae92d952496754acff4a8325 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 29 Apr 2022 22:07:26 -0400 Subject: [PATCH] Fix path for requirements.txt Change-Id: Iac353e8e851a7b5b7d4d31d8248a07ee59162247 --- playbooks/molecule/pre-run.yaml | 4 ++-- roles/ensure-molecule/tasks/main.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/molecule/pre-run.yaml b/playbooks/molecule/pre-run.yaml index 3d0e7fd..a094b38 100644 --- a/playbooks/molecule/pre-run.yaml +++ b/playbooks/molecule/pre-run.yaml @@ -15,7 +15,7 @@ become: true pip: name: ['pbr', 'pyyaml'] - - name: Generate meta.yml file + - name: Generate galaxy.yml file shell: python3 {{ zuul.project.src_dir }}/tools/generate-galaxy-yml.py args: chdir: "{{ zuul.project.src_dir }}" @@ -49,7 +49,7 @@ loop_control: label: "{{ item.instance }}" -- hosts: all +- hosts: molecule tasks: - ping: diff --git a/roles/ensure-molecule/tasks/main.yaml b/roles/ensure-molecule/tasks/main.yaml index 0e79d54..86d62cc 100644 --- a/roles/ensure-molecule/tasks/main.yaml +++ b/roles/ensure-molecule/tasks/main.yaml @@ -12,7 +12,7 @@ - name: Install additional dependencies become: true pip: - requirements: "{{ zuul.project.src_dir }}/molecule/default/requirements.txt" + requirements: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/molecule/default/requirements.txt" - name: Output molecule version command: molecule --version