Skip to content

Commit

Permalink
replacing ad-hoc hardening content
Browse files Browse the repository at this point in the history
Signed-off-by: wdower <will@dower.dev>
  • Loading branch information
wdower committed Mar 15, 2024
1 parent 3362ed9 commit b184b50
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions spec/ansible/roles/ansible-role-rhel-hardened/tasks/ad_hoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
# executables to have perms greater than 755
# the STIG does not allow perms over 755 regardless of whether they are root-owned, so
# we will fix it here
# - name: Find files with permissions set too high
# ansible.builtin.shell: "find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin -perm /0022"
# changed_when: false
# failed_when: false
# register: files_with_too_high_perms
- name: Find files with permissions set too high
ansible.builtin.shell: "find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin -perm /0022"
changed_when: false
failed_when: false
register: files_with_too_high_perms


# - name: Fix files with permissions set too high
# ansible.builtin.file:
# path: "{{ item }}"
# owner: root
# group: root
# mode: "{{ rhel8stig_sys_commands_perm }}"
# force: true
# with_items:
# - "{{ files_with_too_high_perms.stdout_lines }}"
- name: Fix files with permissions set too high
ansible.builtin.file:
path: "{{ item }}"
owner: root
group: root
mode: "{{ rhel8stig_sys_commands_perm }}"
force: true
with_items:
- "{{ files_with_too_high_perms.stdout_lines }}"

# - name: fix busted symlink to /usr/bin/miniterm-3.6.py in /bin
# ansible.builtin.file:
# path: /bin/miniterm-3.6.py
# state: absent
- name: fix busted symlink to /usr/bin/miniterm-3.6.py in /bin
ansible.builtin.file:
path: /bin/miniterm-3.6.py
state: absent

0 comments on commit b184b50

Please sign in to comment.