Skip to content

Commit

Permalink
Created new stage for ansible execution
Browse files Browse the repository at this point in the history
  • Loading branch information
khushmeeet committed Sep 15, 2023
1 parent 5d72d0f commit 2744a76
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/hetzner_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,23 @@ jobs:
run: sleep 2m
shell: bash
- run: echo "Job is ${{ job.status }}."

ansible:
name: Setup Nomad & Consul
needs: terraform
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ansible
python -m pip install --upgrade pip
- name: Run Ansible Playbook
run: |
ansible-playbook ansible/setup-server.yml

0 comments on commit 2744a76

Please sign in to comment.