Skip to content

Commit 2439891

Browse files
committed
FIx hosts file
1 parent cec9a4d commit 2439891

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ansible-deployments.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
- name: Install ansible lint tools
2121
run: sudo apt update; sudo apt install ansible
2222
- name: Setup the hosts file
23-
run: printf '[judgehost] \n github-action\tansible_host=localhost' > icpc-wf/ansible/hosts
23+
working-directory: ./icpc-wf/ansible
24+
run: sed -i 's/\[judgehost\]/[removed]/g' hosts; printf '\n[judgehost]\ngithub-action\tansible_host=localhost' >>> hosts
25+
- name: Generate secure credentials
26+
working-directory: ./icpc-wf/ansible
27+
run: mv group_vars/all/secret.yml{.secret,}
2428
- name: Run the default deployment method
2529
working-directory: ./icpc-wf/ansible
26-
run: ls; cat hosts; cat Makefile; make judgehost
30+
run: cat hosts; make judgehost

0 commit comments

Comments
 (0)