Skip to content

Commit 144dc6c

Browse files
committed
fix(gha): update ansible workflow -- limit to Linode
1 parent 50950f5 commit 144dc6c

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

.github/workflows/ansible--cleanup-clients.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
working-directory: './ansible'
5353
run: |
5454
SERIAL_VALUE=${{ inputs.serial || 1 }} # Default value of 1 if inputs.serial is not set
55-
ansible-playbook play-any--cleanup-clients.yml \
55+
ansible-playbook -i inventory/linode.yml \
56+
play-any--cleanup-clients.yml \
5657
--private-key=~/.ssh/id_for_ansible.pem \
5758
-e '{"variable_host": "${{ matrix.host_groups }}", "variable_serial": '$SERIAL_VALUE'}' \
5859
${{ inputs.verbosity }}

.github/workflows/ansible--housekeeping.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- prd_oldeworld_clt_ukr
3434
- prd_oldeworld_clt_swa
3535

36-
uses: freeCodeCamp/infra/.github/workflows/ansible--uptime.yml@main
36+
uses: ./.github/workflows/ansible--uptime.yml
3737
with:
3838
hosts: ${{ matrix.host_groups }}
3939
verbosity: '-v'
@@ -78,7 +78,7 @@ jobs:
7878
- prd_oldeworld_clt_ukr
7979
- prd_oldeworld_clt_swa
8080

81-
uses: freeCodeCamp/infra/.github/workflows/ansible--update.yml@main
81+
uses: ./.github/workflows/ansible--update.yml
8282
with:
8383
hosts: ${{ matrix.host_groups }}
8484
verbosity: '-v'
@@ -104,7 +104,7 @@ jobs:
104104
host_groups:
105105
- stg_oldeworld_pxy
106106
- prd_oldeworld_pxy
107-
uses: freeCodeCamp/infra/.github/workflows/ansible--reboot.yml@main
107+
uses: ./.github/workflows/ansible--reboot.yml
108108
with:
109109
hosts: ${{ matrix.host_groups }}
110110
verbosity: '-v'
@@ -147,7 +147,7 @@ jobs:
147147
- prd_oldeworld_clt_ukr
148148
- prd_oldeworld_clt_swa
149149

150-
uses: freeCodeCamp/infra/.github/workflows/ansible--reboot.yml@main
150+
uses: ./.github/workflows/ansible--reboot.yml
151151
with:
152152
hosts: ${{ matrix.host_groups }}
153153
verbosity: '-v'

.github/workflows/ansible--list-inventory.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: List Inventory
2525
working-directory: ${{ env.WORKING_DIR }}
2626
run: |
27-
ansible-inventory --graph -v
27+
ansible-inventory -i inventory/linode.yml --graph -v

.github/workflows/ansible--reboot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
LINODE_API_TOKEN: ${{ secrets.LINODE_TOKEN }}
7171
working-directory: './ansible'
7272
run: |
73-
ansible-playbook play-any--reboot.yml \
73+
ansible-playbook -i inventory/linode.yml \
74+
play-any--reboot.yml \
7475
--private-key=~/.ssh/id_for_ansible.pem \
7576
-e '{"variable_host": "${{ inputs.hosts }}", "variable_serial": ${{ inputs.serial }}}' \
7677
${{ inputs.verbosity }}

.github/workflows/ansible--update.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
LINODE_API_TOKEN: ${{ secrets.LINODE_TOKEN }}
7171
working-directory: './ansible'
7272
run: |
73-
ansible-playbook play-any--update.yml \
73+
ansible-playbook -i inventory/linode.yml \
74+
play-any--update.yml \
7475
--private-key=~/.ssh/id_for_ansible.pem \
7576
-e '{"variable_host": "${{ inputs.hosts }}", "variable_serial": ${{ inputs.serial }}}' \
7677
${{ inputs.verbosity }}

.github/workflows/ansible--uptime.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
LINODE_API_TOKEN: ${{ secrets.LINODE_TOKEN }}
7171
working-directory: './ansible'
7272
run: |
73-
ansible-playbook play-any--uptime.yml \
73+
ansible-playbook -i inventory/linode.yml \
74+
play-any--uptime.yml \
7475
--private-key=~/.ssh/id_for_ansible.pem \
7576
-e '{"variable_host": "${{ inputs.hosts }}", "variable_serial": ${{ inputs.serial }}}' \
7677
${{ inputs.verbosity }}

0 commit comments

Comments
 (0)