From e480bcc68531d9ded0c5c92e6808d4544b0cdaea Mon Sep 17 00:00:00 2001 From: Ryan Moon Date: Tue, 31 Mar 2026 17:47:05 -0500 Subject: [PATCH] Use domain name instead of IP in Ansible workflow --- .gitea/workflows/ansible.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ansible.yml b/.gitea/workflows/ansible.yml index b06e64e..7d5ec7f 100644 --- a/.gitea/workflows/ansible.yml +++ b/.gitea/workflows/ansible.yml @@ -56,12 +56,12 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.DROPLET_SSH_KEY }}" > ~/.ssh/do chmod 600 ~/.ssh/do - ssh-keyscan -H $DROPLET_IP >> ~/.ssh/known_hosts + ssh-keyscan -H git-ssh.lunarfront.tech >> ~/.ssh/known_hosts - name: Write inventory run: | echo "[infra]" > inventory.ini - echo "$DROPLET_IP ansible_user=root ansible_ssh_private_key_file=~/.ssh/do" >> inventory.ini + echo "git-ssh.lunarfront.tech ansible_user=root ansible_ssh_private_key_file=~/.ssh/do" >> inventory.ini - name: Write vault password run: echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > .vault_pass