diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f3b101..7f780fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} @@ -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: