try this
This commit is contained in:
@@ -8,8 +8,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
update-packages:
|
update-packages:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: alpine/ansible:2.18.6
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -19,13 +17,12 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Update packages
|
- name: Update packages
|
||||||
|
uses: docker://alpine/ansible:2.18.6
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-packages.yml
|
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-packages.yml
|
||||||
|
|
||||||
prune-images:
|
prune-images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: alpine/ansible:2.18.6
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -35,13 +32,12 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Prune ctr images
|
- name: Prune ctr images
|
||||||
|
uses: docker://alpine/ansible:2.18.6
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/prune-k3s.yml
|
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/prune-k3s.yml
|
||||||
|
|
||||||
update-proxmox:
|
update-proxmox:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: alpine/ansible:2.18.6
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -51,5 +47,6 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Update proxmox nodes
|
- name: Update proxmox nodes
|
||||||
|
uses: docker://alpine/ansible:2.18.6
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-proxmox.yml
|
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-proxmox.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user