File tree Expand file tree Collapse file tree 6 files changed +13
-9
lines changed
Expand file tree Collapse file tree 6 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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'
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'
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments