4
0
Fork 0

Added urandom passwd for root

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-01-23 18:43:23 +00:00
parent a4919ae339
commit 511f9cf000
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9

View file

@ -87,6 +87,12 @@ jobs:
run: sleep 60s
shell: bash
# Set up requirements for random root password CIS 5.6.6
- name: add urandom passwd to root account
shell: bash
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" --private-key ${{ secrets.SSH_PRV_KEY }} -b
# Run the ansible playbook
- name: Run_Ansible_Playbook
uses: arillso/action.playbook@master