From a2a5df62b7d11ec626d4055d3a90bafbf5c2d35a Mon Sep 17 00:00:00 2001 From: Scott Fryer Date: Fri, 8 Mar 2024 10:52:19 +0000 Subject: [PATCH] Fix 10 --- .github/workflows/build_vagrant.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_vagrant.yml b/.github/workflows/build_vagrant.yml index 69430257b5..1a33c2c968 100644 --- a/.github/workflows/build_vagrant.yml +++ b/.github/workflows/build_vagrant.yml @@ -74,11 +74,18 @@ jobs: cat playbooks/AdoptOpenJDK_Unix_Playbook/hosts.unx [ ! -d $HOME/.ssh ] && mkdir $HOME/.ssh && chmod 700 $HOME/.ssh [ ! -r $HOME/.ssh/known_hosts ] && touch $HOME/.ssh/known_hosts && chmod 644 $HOME/.ssh/known_hosts + [ ! -d $HOME/.ansible ] && mkdir $HOME/.ansible ssh-keygen -R $(cat playbooks/AdoptOpenJDK_Unix_Playbook/hosts.unx) + sed -i -e "s/.*hosts:.*/ hosts: all/g" playbooks/AdoptOpenJDK_Unix_Playbook/main.yml + awk '{print}/^\[defaults\]$/{print "private_key_file = id_rsa"; print "timeout = 60"; print "remote_tmp = $HOME/.ansible/tmp"}' < ansible.cfg > ansible.cfg.tmp && mv ansible.cfg.tmp ansible.cfg + echo "1" ls -ltr $HOME + echo "2" ls -ltr $HOME/.ssh - # sed -i -e "s/.*hosts:.*/ hosts: all/g" playbooks/AdoptOpenJDK_Unix_Playbook/main.yml - # awk '{print}/^\[defaults\]$/{print "private_key_file = id_rsa"; print "timeout = 60"; print "remote_tmp = $HOME/.ansible/tmp"}' < ansible.cfg > ansible.cfg.tmp && mv ansible.cfg.tmp ansible.cfg + echo "3" + ls -ltr $HOME/.ansible + echo "4" + ls -ltr # # - name: Run Ansible Playbook # run: |