From 4e2fd296b68ada8da4de7182e8040522d45ca135 Mon Sep 17 00:00:00 2001 From: uk-bolly <69214557+uk-bolly@users.noreply.github.com> Date: Fri, 29 Jul 2022 09:50:06 +0100 Subject: [PATCH] Changed way key is loaded --- .github/workflows/linux_benchmark_testing.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index 5f9f17f..175b3e6 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -89,11 +89,12 @@ jobs: # Ensure system is up for connections before continuing - # - name: Check system is up and running - # working-directory: .github/workflows - # id: test_os - # run: >- - # ansible all -i hosts.yml -m wait_for -a "port=22 delay=10 timeout=600" --private-key=.ssh/github_actions.pem -u ec2-user -vvv + - name: Check system is up and running + working-directory: .github/workflows + env: + PRIVATE_KEY: "${{ secrets.SSH_PRV_KEY }}" + id: test_os + run: ansible all -i hosts.yml -m wait_for -a "port=22 delay=10 timeout=600" --private-key=.ssh/github_actions.pem -u ec2-user -e ansible_ssh_private_key_file='{{ lookup("env", "PRIVATE_KEY") # Run the ansible playbook - name: Run_Ansible_Playbook