generated from helmut/template
Update configs
Remote Deploy to Windows / deploy (push) Failing after 1s
Details
Remote Deploy to Windows / deploy (push) Failing after 1s
Details
This commit is contained in:
parent
7b15b0ea37
commit
bb8f205779
|
|
@ -10,9 +10,14 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up SSH Key
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
|
|
||||||
- name: Run Ansible Playbook
|
- name: Run Ansible Playbook
|
||||||
env:
|
|
||||||
ANSIBLE_NETCONF_PASSWORD: ${{ secrets.WINRM_PASSWORD }}
|
|
||||||
run: |
|
run: |
|
||||||
cd ansible
|
cd ansible
|
||||||
ansible-playbook -i inventory.ini playbook.yml
|
ansible-playbook -i inventory.ini playbook.yml
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
GUFK_ISERVER ansible_host=192.168.1.2
|
GUFK_ISERVER ansible_host=192.168.1.2
|
||||||
|
|
||||||
[windows:vars]
|
[windows:vars]
|
||||||
ansible_user=admin@efgufk.com
|
ansible_user=admin
|
||||||
ansible_password=Sj032ssa!
|
ansible_connection=ssh
|
||||||
ansible_connection=winrm
|
ansible_shell_type=cmd
|
||||||
ansible_winrm_server_cert_validation=ignore
|
ansible_ssh_private_key_file=~/.ssh/id_ed25519
|
||||||
ansible_port=5985
|
|
||||||
Loading…
Reference in New Issue