fix init ansible migration (sshkey)
This commit is contained in:
parent
22b404be1f
commit
91a1930642
2 changed files with 5 additions and 3 deletions
|
@ -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 }}
|
|
@ -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
|
Loading…
Add table
Reference in a new issue