Compare commits
7 Commits
cv
...
b7ad335c02
| Author | SHA1 | Date | |
|---|---|---|---|
| b7ad335c02 | |||
| bf45b66782 | |||
| 98e05fe930 | |||
| a1462c543b | |||
| 5e4ecc9447 | |||
| 7fb05e9b58 | |||
| e337369951 |
@@ -2,6 +2,8 @@ name: Ansible Deploy
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: '00 23 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -26,6 +28,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
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
|
||||||
|
cat inventory.yaml
|
||||||
|
|
||||||
- name: Run Ansible Playbook
|
- name: Run Ansible Playbook
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}" SKOPEO_PASS="${{ secrets.SKOPEO_PASS }}"' hatarashi-hako.yaml -vv
|
ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}" SKOPEO_PASS="${{ secrets.SKOPEO_PASS }}"' hatarashi-hako.yaml -vv
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
all:
|
|
||||||
hosts:
|
|
||||||
takahe:
|
|
||||||
ansible_host: 192.168.0.66
|
|
||||||
ansible_user: shmick
|
|
||||||
Reference in New Issue
Block a user