forked from ansible-lockdown/RHEL9-CIS
revert
This commit is contained in:
parent
6171400d17
commit
7fed2bcbc9
1 changed files with 13 additions and 13 deletions
26
.github/workflows/linux_benchmark_testing.yml
vendored
26
.github/workflows/linux_benchmark_testing.yml
vendored
|
|
@ -58,7 +58,6 @@ jobs:
|
||||||
chmod 700 .ssh
|
chmod 700 .ssh
|
||||||
echo $PRIVATE_KEY > .ssh/github_actions.pem
|
echo $PRIVATE_KEY > .ssh/github_actions.pem
|
||||||
chmod 600 .ssh/github_actions.pem
|
chmod 600 .ssh/github_actions.pem
|
||||||
file .ssh/github_actions.pem && cat .ssh/github_actions.pem
|
|
||||||
|
|
||||||
### Build out the server
|
### Build out the server
|
||||||
- name: Terraform_Init
|
- name: Terraform_Init
|
||||||
|
|
@ -69,11 +68,6 @@ jobs:
|
||||||
working-directory: .github/workflows
|
working-directory: .github/workflows
|
||||||
run: terraform validate
|
run: terraform validate
|
||||||
|
|
||||||
- name: Validate path contents
|
|
||||||
if: env.ENABLE_DEBUG == 'true'
|
|
||||||
working-directory: .github/workflows
|
|
||||||
run: pwd && ls -laR
|
|
||||||
|
|
||||||
- name: Terraform_Apply
|
- name: Terraform_Apply
|
||||||
working-directory: .github/workflows
|
working-directory: .github/workflows
|
||||||
env:
|
env:
|
||||||
|
|
@ -87,14 +81,20 @@ jobs:
|
||||||
working-directory: .github/workflows
|
working-directory: .github/workflows
|
||||||
run: cat hosts.yml
|
run: cat hosts.yml
|
||||||
|
|
||||||
# Ensure system is up for connections before continuing
|
# Centos 7 images take a while to come up insert sleep or playbook fails
|
||||||
|
|
||||||
# - name: Check system is up and running
|
- name: Check if test os is rhel7
|
||||||
# working-directory: .github/workflows
|
working-directory: .github/workflows
|
||||||
# env:
|
id: test_os
|
||||||
# PRIVATE_KEY: "${{ secrets.SSH_PRV_KEY }}"
|
run: >-
|
||||||
# id: test_os
|
echo "::set-output name=RHEL7::$(
|
||||||
# run: ansible all -i hosts.yml -m wait_for -a "port=22 delay=10 timeout=600" -u ec2-user -e ansible_ssh_private_key_file='{{ lookup("env", "PRIVATE_KEY") }}'
|
grep -c RHEL7 OS.tfvars
|
||||||
|
)"
|
||||||
|
|
||||||
|
- name: if RHEL7 - Sleep for 60 seconds
|
||||||
|
if: steps.test_os.outputs.RHEL7 >= 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