diff --git a/.github/workflows/develop_branch.yml b/.github/workflows/develop_branch.yml index 0521830..499af44 100644 --- a/.github/workflows/develop_branch.yml +++ b/.github/workflows/develop_branch.yml @@ -24,17 +24,19 @@ jobs: credentials: username: "${{ secrets.GHCR_USERNAME }}" password: "${{ secrets.GHCR_PASSWORD }}" + volumes: + - ansible-galaxy:/github/home/.ansible steps: - name: Checkout uses: actions/checkout@v4 - name: Prepare environments (ansible-galaxy install role) run: | - ansible-galaxy role install -r requirements.yml --ignore-errors --force + ansible-galaxy role install -r requirements.yml --ignore-errors - name: Prepare environments (ansible-galaxy install collection) run: | - ansible-galaxy collection install -r requirements.yml --ignore-errors --force + ansible-galaxy collection install -r requirements.yml --ignore-errors - name: Run Ansible-lint run: | @@ -77,6 +79,7 @@ jobs: volumes: - /home/runner/ansible-vault:/tmp:ro - /home/runner/.ssh:/root/.ssh:ro + - ansible-galaxy:/github/home/.ansible steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/main_branch.yml b/.github/workflows/main_branch.yml index 6b3b145..6b382a3 100644 --- a/.github/workflows/main_branch.yml +++ b/.github/workflows/main_branch.yml @@ -23,17 +23,19 @@ jobs: credentials: username: "${{ secrets.GHCR_USERNAME }}" password: "${{ secrets.GHCR_PASSWORD }}" + volumes: + - ansible-galaxy:/github/home/.ansible steps: - name: Checkout uses: actions/checkout@v4 - name: Prepare environments (ansible-galaxy install role) run: | - ansible-galaxy role install -r requirements.yml --ignore-errors --force + ansible-galaxy role install -r requirements.yml --ignore-errors - name: Prepare environments (ansible-galaxy install collection) run: | - ansible-galaxy collection install -r requirements.yml --ignore-errors --force + ansible-galaxy collection install -r requirements.yml --ignore-errors - name: Run Ansible-lint run: | @@ -79,6 +81,7 @@ jobs: volumes: - /home/runner/ansible-vault:/tmp:ro - /home/runner/.ssh:/root/.ssh:ro + - ansible-galaxy:/github/home/.ansible steps: - name: Checkout uses: actions/checkout@v4 @@ -126,6 +129,7 @@ jobs: volumes: - /home/runner/ansible-vault:/tmp:ro - /home/runner/.ssh:/root/.ssh:ro + - ansible-galaxy:/github/home/.ansible steps: - name: Checkout uses: actions/checkout@v4