From 405b328ddbbce6bf6167d612193de8154ea67cc9 Mon Sep 17 00:00:00 2001 From: shmick Date: Tue, 21 Nov 2023 22:53:20 +0200 Subject: [PATCH] Use split --- .gitea/workflows/kumonoboru.yaml | 67 +++++++++++++++++--------------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/.gitea/workflows/kumonoboru.yaml b/.gitea/workflows/kumonoboru.yaml index fd01f35..de4178a 100644 --- a/.gitea/workflows/kumonoboru.yaml +++ b/.gitea/workflows/kumonoboru.yaml @@ -1,31 +1,36 @@ -name: Configure Kumonoboru - -on: - push: - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Set up Python - run: | - apt -y update - apt -y install python3 python3-pip skopeo - - - name: Install Ansible - run: | - python3 -m pip install --upgrade pip - pip install ansible - - - name: Set up SSH - uses: webfactory/ssh-agent@v0.5.0 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - - name: Run Ansible Playbook - run: | - ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}"' kumonoboru.yaml -vv +name: Configure Kumonoboru + +on: + push: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + run: | + apt -y update + apt -y install python3 python3-pip skopeo + + - name: Install Ansible + run: | + python3 -m pip install --upgrade pip + pip install ansible + + - name: Set up SSH + uses: webfactory/ssh-agent@v0.5.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Checkout Ansible inventory + run: | + INVENTORY_URL="https://shmick:${{ secrets.ANSIBLE_TOKEN }}@git.pukeko.xyz/shmick/ansible/raw/branch/main/inventory.yaml" + curl -o inventory.yaml $INVENTORY_URL + + - name: Run Ansible Playbook + run: | + ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}"' kumonoboru.yaml -vv