Skip to content

Commit

Permalink
The github action seems not to respect the wait
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Dec 2, 2021
1 parent 569e0ef commit 50b4eca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,7 @@ jobs:
"https://nsupdate.fedcloud.eu/nic/update?myip=${{ steps.public_ip.outputs.stdout }}"
- name: Configure with ansible
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbook.yaml
directory: ./
key: ${{secrets.SSH_KEY}}
inventory: |
all:
hosts:
${{ steps.public_ip.outputs.stdout }}:
ansible_user: egi
ansible_ssh_private_key_file: key
ansible_ssh_common_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
requirements: galaxy-requirements.yaml
# Optional, additional flags to pass to ansible-playbook
options: |
--verbose
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
./configure.sh "$SSH_KEY" "${{ steps.public_ip.outputs.stdout }}"
2 changes: 1 addition & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ echo "$SSH_KEY" > key
chmod 400 key

# and now config
ansible-galaxy install grycap.docker
ansible-galaxy install -r galaxy-requirements.yaml

ansible-playbook -i inventory.yaml playbook.yaml

0 comments on commit 50b4eca

Please sign in to comment.