From 02f209474a16739e4af1e57ceae47ee1ff501793 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 12 Jun 2025 13:46:31 -0400 Subject: [PATCH 1/3] Location fix.. --- .gitea/workflows/pr-ansible-config-deployment.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/pr-ansible-config-deployment.yaml b/.gitea/workflows/pr-ansible-config-deployment.yaml index 023994d7..bb4ea3e2 100644 --- a/.gitea/workflows/pr-ansible-config-deployment.yaml +++ b/.gitea/workflows/pr-ansible-config-deployment.yaml @@ -107,14 +107,14 @@ jobs: uses: dawidd6/action-ansible-playbook@v3 with: # Required, playbook filepath - playbook: ansible/docker_config_deploy.yml + playbook: docker_config_deploy.yml directory: ansible/ key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }} vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} - requirements: ansible/collections/requirements.yml + requirements: collections/requirements.yml options: | --check - --inventory ansible/inventory/hosts.yml + --inventory inventory/hosts.yml -vvv - name: Gotify Notification uses: eikendev/gotify-action@master @@ -195,13 +195,13 @@ jobs: uses: dawidd6/action-ansible-playbook@v3 with: # Required, playbook filepath - playbook: ansible/docker_config_deploy.yml + playbook: docker_config_deploy.yml directory: ansible/ key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }} vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} - requirements: ansible/collections/requirements.yml + requirements: collections/requirements.yml options: | - --inventory ansible/inventory/hosts.yml + --inventory inventory/hosts.yml -vvv # - name: Ansible Playbook Config Deploy # uses: arillso/action.playbook@0.1.0 -- 2.52.0 From 674549b86eb54c8abf6693832376ea119e2d7acb Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 12 Jun 2025 14:03:07 -0400 Subject: [PATCH 2/3] Working Ansible actions. --- .../pr-ansible-config-deployment.yaml | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/pr-ansible-config-deployment.yaml b/.gitea/workflows/pr-ansible-config-deployment.yaml index bb4ea3e2..01e53e86 100644 --- a/.gitea/workflows/pr-ansible-config-deployment.yaml +++ b/.gitea/workflows/pr-ansible-config-deployment.yaml @@ -92,30 +92,18 @@ jobs: gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}' notification_title: 'GITEA: Ansible Config Dry Run @ Rinoa' notification_message: 'Starting Ansible dry run...' - # - name: Ansible Playbook Dry Run - # uses: arillso/action.playbook@0.1.0 - # with: - # check: true - # galaxy_collections_path: ansible/collections - # galaxy_requirements_file: ansible/collections/requirements.yml - # inventory: ansible/inventory/hosts.yml - # playbook: ansible/docker_config_deploy.yml - # private_key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }} - # vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} - # verbose: 3 - name: Ansible Playbook Dry Run uses: dawidd6/action-ansible-playbook@v3 with: - # Required, playbook filepath - playbook: docker_config_deploy.yml directory: ansible/ + playbook: docker_config_deploy.yml key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }} vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} requirements: collections/requirements.yml options: | --check --inventory inventory/hosts.yml - -vvv + --verbose - name: Gotify Notification uses: eikendev/gotify-action@master with: @@ -194,26 +182,13 @@ jobs: - name: Ansible Playbook Config Deploy uses: dawidd6/action-ansible-playbook@v3 with: - # Required, playbook filepath - playbook: docker_config_deploy.yml directory: ansible/ + playbook: docker_config_deploy.yml key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }} vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} requirements: collections/requirements.yml options: | --inventory inventory/hosts.yml - -vvv - # - name: Ansible Playbook Config Deploy - # uses: arillso/action.playbook@0.1.0 - # with: - # check: false - # galaxy_collections_path: ansible/collections - # galaxy_requirements_file: ansible/collections/requirements.yml - # inventory: ansible/inventory/hosts.yml - # playbook: ansible/docker_config_deploy.yml - # private_key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }} - # vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} - # verbose: 3 - name: Gotify Notification uses: eikendev/gotify-action@master with: -- 2.52.0 From 991cdd5a852442dc630c12b4eac7c074337c2e9d Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 12 Jun 2025 14:35:51 -0400 Subject: [PATCH 3/3] ... --- .gitea/workflows/pr-ansible-config-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pr-ansible-config-deployment.yaml b/.gitea/workflows/pr-ansible-config-deployment.yaml index 01e53e86..11b986c7 100644 --- a/.gitea/workflows/pr-ansible-config-deployment.yaml +++ b/.gitea/workflows/pr-ansible-config-deployment.yaml @@ -59,7 +59,7 @@ jobs: notification_title: 'GITEA: PR Check' notification_message: 'PR Created 🎟️' ansible-linting: - name: Ansible Lints + name: Ansible Lint needs: [check-and-create-pr] runs-on: ubuntu-latest env: @@ -103,7 +103,7 @@ jobs: options: | --check --inventory inventory/hosts.yml - --verbose + -v - name: Gotify Notification uses: eikendev/gotify-action@master with: -- 2.52.0