Skip to content

Commit

Permalink
issue #106: ansible ssh private key
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Apr 3, 2024
1 parent f3c7b56 commit 72284ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/workflow-lint-and-apply-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ jobs:
id: ansible-lint
run: ansible-lint -c ${{ github.workspace }}/${{ inputs.ansible-lint-config }} ${{ github.workspace }}

- name: Create the ssh private key file
run: echo '${{ secrets.ANSIBLE_SSH_PRIVATE_KEY }}' > ${{ github.workspace }}/private_key

- name: Run ansible-playbook
run: ansible-playbook -i ${{ github.workspace }}/${{ inputs.ansible-inventory-file }} ${{ github.workspace }}/${{ inputs.ansible-playbook-file }}
run: ansible-playbook --private-key private_key -i ${{ github.workspace }}/${{ inputs.ansible-inventory-file }} ${{ github.workspace }}/${{ inputs.ansible-playbook-file }}

0 comments on commit 72284ec

Please sign in to comment.