change server
Some checks failed
Build Docker / deploy (push) Failing after 1m16s
Build Docker / build (push) Has been skipped

This commit is contained in:
2026-05-13 16:35:51 +03:00
parent ccf727a1be
commit ac06706cf9
2 changed files with 4 additions and 4 deletions

View File

@@ -11,8 +11,8 @@ jobs:
- name: Setup SSH key
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/id_fin
chmod 600 /tmp/id_fin
echo "${{ secrets.SSH_PRIVATE_KEY_RU }}" > /tmp/id_ru
chmod 600 /tmp/id_ru
#ключ машины
- name: Create .env file
run: echo "${{ secrets.RUNNER_ENV }}" > .env
@@ -28,7 +28,7 @@ jobs:
- name: Run Ansible playbook
run: ansible-playbook -i tmp-repo/ansible/inventory.ini tmp-repo/ansible/deploy.yml -e @tmp-repo/ansible/secrets.yml -e env_file="$(pwd)/.env"
env:
ANSIBLE_PRIVATE_KEY_FILE: /tmp/id_fin
ANSIBLE_PRIVATE_KEY_FILE: /tmp/id_ru
ANSIBLE_HOST_KEY_CHECKING: "False"
build:

View File

@@ -1,2 +1,2 @@
[servers]
myserver ansible_host=38.244.136.102 ansible_user=root
myserver ansible_host=81.19.135.168 ansible_user=root