Skip to content

Commit

Permalink
Fix typos and Title Case for Ansible tasks names
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Burghardt <[email protected]>
  • Loading branch information
marcusburghardt committed Jul 17, 2024
1 parent f3aed6e commit 6a07d80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ind:textfilecontent54_test>

<ind:textfilecontent54_object id="object_set_password_hashing_algorithm_libuserconf" version="2"
comment="only one hashing algorithm option for pam_unix.so is found in /etc/pam.d/password-auth">
comment="only one hashing algorithm option for pam_unix.so is found in /etc/libuser.conf">
<ind:filepath>/etc/libuser.conf</ind:filepath>
<ind:pattern operation="pattern match">^[\s]*crypt_style[\s]*=[\s]*(\w*)[\s]*$</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
{{{ ansible_instantiate_variables("var_password_hashing_algorithm_pam") }}}
{{{ ansible_ensure_pam_module_configuration(pam_file, 'password', 'sufficient', 'pam_unix.so', '{{ var_password_hashing_algorithm_pam }}', '', '') }}}

- name: '{{{ rule_title }}} - Check if {{{ pam_file }}} file is present'
- name: '{{{ rule_title }}} - Check if {{{ pam_file }}} File is Present'
ansible.builtin.stat:
path: {{{ pam_file }}}
register: result_pam_file_present

- name: '{{{ rule_title }}} - Check the proper remediation for the system'
- name: '{{{ rule_title }}} - Check The Proper Remediation For The System'
block:
{{{ ansible_ensure_pam_facts_and_authselect_profile(pam_file) | indent(4) }}}

- name: '{{{ rule_title }}} - Ensure the only the correct hashing algorithm option for pam_unix.so is used in {{{ pam_file }}}'
- name: '{{{ rule_title }}} - Ensure That Only the Correct Hashing Algorithm Option For pam_unix.so Is Used in {{{ pam_file }}}'
ansible.builtin.replace:
dest: "{{ pam_file_path }}"
regexp: (.*password.*pam_unix\.so.*)\b{{ item }}\b=?[0-9a-zA-Z]*(.*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
{{{ ansible_instantiate_variables("var_password_hashing_algorithm_pam") }}}
{{{ ansible_ensure_pam_module_configuration(pam_file, 'password', control, 'pam_unix.so', '{{ var_password_hashing_algorithm_pam }}', '', '') }}}

- name: '{{{ rule_title }}} - Check if {{{ pam_file }}} file is present'
- name: '{{{ rule_title }}} - Check if {{{ pam_file }}} File is Present'
ansible.builtin.stat:
path: {{{ pam_file }}}
register: result_pam_file_present

- name: '{{{ rule_title }}} - Check the proper remediation for the system'
- name: '{{{ rule_title }}} - Check The Proper Remediation For The System'
block:
{{{ ansible_ensure_pam_facts_and_authselect_profile(pam_file) | indent(4) }}}

- name: '{{{ rule_title }}} - Ensure the only the correct hashing algorithm option for pam_unix.so is used in {{{ pam_file }}}'
- name: '{{{ rule_title }}} - Ensure That Only the Correct Hashing Algorithm Option For pam_unix.so Is Used in {{{ pam_file }}}'
ansible.builtin.replace:
dest: "{{ pam_file_path }}"
regexp: (.*password.*pam_unix\.so.*)\b{{ item }}\b=?[0-9a-zA-Z]*(.*)
Expand Down

0 comments on commit 6a07d80

Please sign in to comment.