Skip to content

Commit

Permalink
Add export ANSIBLE_HOST_KEY_CHECKING=False
Browse files Browse the repository at this point in the history
  • Loading branch information
bcirh authored Nov 3, 2024
1 parent 323dc86 commit c5f67c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ on:
- deploy
- destroy
env:
# Setting an environment variable with the value of a configuration variable
ssh_public_key: ${{ vars.SSH_PUB_KEY }}
ANSIBLE_HOST_KEY_CHECKING: False

jobs:
terraform-provision:
provision-and-configure:
runs-on: ubuntu-22.04
env:
TF_VAR_subscription_id: ${{ secrets.SUBSCRIPTION_ID }}
Expand Down Expand Up @@ -42,6 +41,7 @@ jobs:
- if: github.event.inputs.action == 'deploy'
name: Run ansible configuration
run: |
export ANSIBLE_HOST_KEY_CHECKING=False
VM_IP=$(terraform -chdir=terraform output -raw hylastix_vm_public_ip)
cat > ansible/inventory.yml << EOF
consul_server:
Expand Down

0 comments on commit c5f67c6

Please sign in to comment.