.
Some checks failed
deploy host / Deploy (push) Failing after 4s

This commit is contained in:
2024-09-07 02:22:38 +01:00
parent ad1447c790
commit ae43a127a8
4 changed files with 1 additions and 28 deletions

View File

@@ -25,6 +25,7 @@ jobs:
-e ANSIBLE_INVENTORY="${{ secrets.HOST_ANSIBLE_INVENTORY }}" \
-e ANSIBLE_PROJECT_DIR="${GITHUB_WORKSPACE}/ansible" \
-e ANSIBLE_HOST_KEY_CHECKING=false \
-e ANSIBLE_BECOME_PASS=${{ secrets.HOST_ANSIBLE_BECOME_PASS }}
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
git.limbosolutions.com/kb/ansible:dev \

View File

@@ -1,8 +0,0 @@
docker image pull git.limbosolutions.com/kb/ansible
docker run --rm \
-v ${PWD}/scripts:/scripts \
-v ${PWD}/workspace:/workspace \
-v ${MY_ANSIBLE_PRIVATE_KEY_FILE}/id_ed25519:/data/ansible_private_key \
git.limbosolutions.com/kb/ansible \
bash /scripts/run.sh

View File

@@ -1,11 +0,0 @@
#/bin/bash
source /scripts/.env.local
echo $ANSIBLE_PRIVATE_KEY > /root/ansible_private_key
source /scripts/.env.local
cd /workspace
chmod 600 /root/ansible_private_key
cat /root/ansible_private_key
export ANSIBLE_HOST_KEY_CHECKING=False
$ANSIBLE_COMMAND

View File

@@ -1,9 +0,0 @@
- name: Homesrv01 playbook
hosts: all
tasks:
- name: Ping my hosts
ansible.builtin.ping:
- name: Print message
ansible.builtin.debug:
msg: Hello world