From 80168bc6d4e73affd810fdc2306b535f45a3eeca Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 20 Feb 2023 14:44:00 +0000 Subject: [PATCH] update urandom check again Signed-off-by: Mark Bolwell --- .github/workflows/linux_benchmark_testing.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index 978792e..991470e 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -90,8 +90,9 @@ jobs: # Set up requirements for random root password CIS 5.6.6 - name: add urandom passwd to root account shell: bash + working-directory: .github/workflows run: | - ANSIBLE_HOST_KEY_CHECKING=False && ansible all -i .github/workflows/hosts.yml -m shell -a "cat /dev/urandom | tr -dc ‘[:print:]’ | head -c50 | passwd --stdin root" -b + ANSIBLE_HOST_KEY_CHECKING=False && ansible all -i hosts.yml -m shell -a "cat /dev/urandom | tr -dc ‘[:print:]’ | head -c50 | passwd --stdin root" -b --private-key .ssh/github_actions.pem # Run the ansible playbook - name: Run_Ansible_Playbook