mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Added urandom passwd for root
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
a4919ae339
commit
511f9cf000
1 changed files with 6 additions and 0 deletions
|
|
@ -87,6 +87,12 @@ jobs:
|
||||||
run: sleep 60s
|
run: sleep 60s
|
||||||
shell: bash
|
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
|
# Run the ansible playbook
|
||||||
- name: Run_Ansible_Playbook
|
- name: Run_Ansible_Playbook
|
||||||
uses: arillso/action.playbook@master
|
uses: arillso/action.playbook@master
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue