forked from ansible-lockdown/RHEL9-CIS
changed to check ssh for all hosts
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
1ab63c73d6
commit
c02024ef69
1 changed files with 3 additions and 9 deletions
12
.github/workflows/linux_benchmark_testing.yml
vendored
12
.github/workflows/linux_benchmark_testing.yml
vendored
|
|
@ -81,20 +81,14 @@ jobs:
|
||||||
working-directory: .github/workflows
|
working-directory: .github/workflows
|
||||||
run: cat hosts.yml
|
run: cat hosts.yml
|
||||||
|
|
||||||
# Centos 7 images take a while to come up insert sleep or playbook fails
|
# Ensure system is up for connections before continuing
|
||||||
|
|
||||||
- name: Check if test os is rhel7 or rhel9
|
- name: Check system is up and runnimn
|
||||||
working-directory: .github/workflows
|
working-directory: .github/workflows
|
||||||
id: test_os
|
id: test_os
|
||||||
run: >-
|
run: >-
|
||||||
echo "::set-output name=Pause::$(
|
ansible all -i hosts.yml -m wait_for -a "host='{{ (ansible_ssh_host|default(ansible_host) }}' port=22 delay=10"
|
||||||
grep -c "RHEL\(7\|9\)" OS.tfvars
|
|
||||||
)"
|
|
||||||
|
|
||||||
- name: if RHEL(7|9) - Sleep for 60 seconds
|
|
||||||
if: steps.test_os.outputs.Pause >= 1
|
|
||||||
run: sleep 60s
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Run the ansible playbook
|
# Run the ansible playbook
|
||||||
- name: Run_Ansible_Playbook
|
- name: Run_Ansible_Playbook
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue