Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vault_password not being set? #91

Closed
t-readyroc opened this issue Jan 30, 2024 · 1 comment
Closed

vault_password not being set? #91

t-readyroc opened this issue Jan 30, 2024 · 1 comment

Comments

@t-readyroc
Copy link

Here's the invocation:

      - name: Upload ISOs to vSphere Datastore
        if: |
          (contains(github.ref_name, 'release') || contains(github.ref_name, 'develop')) &&
          inputs.FORCE_UPLOAD == true
        uses: dawidd6/action-ansible-playbook@v2
        with:
          playbook: copy_iso.yml
          directory: playbooks
          vault_password: ${{ secrets.IT_VAULT_PASSWORD }}
          requirements: requirements.yml
          options:
            --extra-vars workspace=${{ GITHUB.WORKSPACE }}

Here's the resulting run. Doesn't look like vault_password is actually getting set?

Run dawidd6/action-ansible-playbook@v2
  with:
    playbook: copy_iso.yml
    directory: playbooks
    requirements: requirements.yml
    options: --extra-vars workspace=/opt/actions-runner/_work/workflow-testing/workflow-testing
  env:
    BRANCH_REF: develop
    ARTIFACTORY_TOKEN: ***
    PARTNERS_ARTIFACTORY_TOKEN: ***
    PARTNERS_ARTIFACTORY_USER: svc-bv-jenkins
    PARTNERS_ARTIFACTORY_URL: partners.artifactory.<company>.com
    PATH: /home/admin/pyenv/versions/3.8.16/envs/devops/bin:/home/admin/.local/bin:/home/admin/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
    VIRTUAL_ENV: /home/admin/pyenv/versions/3.8.16/envs/devops
/home/admin/pyenv/versions/3.8.16/envs/devops/bin/ansible-galaxy collection install -r requirements.yml
Process install dependency map
|�/�-�\�|�Starting collection install process
|�Skipping 'community.vmware' as it is already installed
/home/admin/pyenv/versions/3.8.16/envs/devops/bin/ansible-playbook copy_iso.yml --extra-vars workspace=/opt/actions-runner/_work/workflow-testing/workflow-testing
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'

PLAY [Copy ISOs to GREEN-VSRN01-vSAN/isos and VSRN01/ISOs] *********************

TASK [Prepare list of ISOs to copy] ********************************************
ok: [localhost]

TASK [include_tasks] ***********************************************************
included: /opt/actions-runner/_work/workflow-testing/workflow-testing/playbooks/include_iso_upload.yml for localhost
included: /opt/actions-runner/_work/workflow-testing/workflow-testing/playbooks/include_iso_upload.yml for localhost
included: /opt/actions-runner/_work/workflow-testing/workflow-testing/playbooks/include_iso_upload.yml for localhost
included: /opt/actions-runner/_work/workflow-testing/workflow-testing/playbooks/include_iso_upload.yml for localhost

TASK [Copy iso files to datastores] ********************************************
fatal: [localhost]: FAILED! => {"msg": "Attempting to decrypt but no vault secrets found"}

Am I expecting incorrect behavior for this parameter?

@t-readyroc
Copy link
Author

Sorted it out - I was using the wrong var name. Sigh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant