diff --git a/.gitea/workflows/ansible-pipeline.yaml b/.gitea/workflows/ansible-pipeline.yaml index 375a38fa..c412cb7b 100644 --- a/.gitea/workflows/ansible-pipeline.yaml +++ b/.gitea/workflows/ansible-pipeline.yaml @@ -29,11 +29,12 @@ jobs: - name: Run Ansible Setup Scripts env: - PROXMOX_TOKEN_SECRET: ${{ secrets.PROXMOX_TOKEN_SECRET }} + PROXMOX_TOKEN_ID: ${{ secrets.PROXMOX_TOKEN_ID }} ANSIBLE_FORCE_COLOR: 'true' ANSIBLE_ROLES_PATH: ${{ github.workspace }}/roles ANSIBLE_COLLECTIONS_PATH: ${{ github.workspace }}/collections run: | + export PROXMOX_TOKEN_SECRET=$(printf "%s" "${{ secrets.PROXMOX_TOKEN_SECRET }}" | tr -d '\n') printf "%s" "${{ secrets.VAULT_PASS }}" | tr -d '\n' > .vault_pass ansible-playbook -i inventory/ --vault-password-file .vault_pass plays/setup-*.yml -v rm .vault_pass diff --git a/inventory/api.proxmox.yaml b/inventory/api.proxmox.yaml index 17cf3076..50569617 100644 --- a/inventory/api.proxmox.yaml +++ b/inventory/api.proxmox.yaml @@ -1,6 +1,6 @@ plugin: community.proxmox.proxmox user: root@pam -token_id: ansible +# token_id: ansible # token_secret: provided via PROXMOX_TOKEN_SECRET env var url: 'https://jupiter.renner.uno:8006' validate_certs: true