fix init ansible migration (sshkey)

This commit is contained in:
Matt Reeves 2024-12-05 00:47:09 -05:00
parent 22b404be1f
commit 91a1930642
2 changed files with 5 additions and 3 deletions

View file

@ -86,8 +86,9 @@ jobs:
echo "Deploying to $target_host for folder $folder"
- name: Run Ansible Playbook
uses: docker://mafyuh/ansible-bws:v1.0.0
uses: docker://mafyuh/ansible-bws:v1.0.1
with:
args: ansible-playbook -i hosts.ini /playbooks/deploy-docker.yml --extra-vars "target_host=$target_host folder=$folder"
env:
BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }}
BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

View file

@ -1,4 +1,5 @@
[defaults]
inventory = ./hosts.ini
ansible_user = mafyuh
host_key_checking = False
host_key_checking = False
private_key_file = /root/.ssh/id_rsa