Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ template:
name: lineinfile
vars:
text: "enforce_for_root"
regex: '^[\s]*enforce_for_root\b'
path: "/etc/security/pwhistory.conf"
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ template:
name: "lineinfile"
vars:
text: "local_users_only"
regex: '^[\s]*local_users_only\b'
path: "{{{ pwquality_path }}}"
oval_extend_definitions:
- accounts_password_pam_pwquality
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ template:
name: "lineinfile"
vars:
text: "enforce_for_root"
regex: '^[\s]*enforce_for_root\b'
path: "{{{ pwquality_path }}}"
backends:
oval: off
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ template:
name: "lineinfile"
vars:
text: "enforcing = 1"
regex: '^[\s]*enforcing[\s]*=[\s]*1\b'
path: "{{{ pwquality_path }}}"
oval_extend_definitions:
- accounts_password_pam_pwquality
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ template:
name: lineinfile
vars:
text: "use_mappers = pwent"
regex: '^[\s]*use_mappers[\s]*=[\s]*pwent\b'
path: /etc/pam_pkcs11/pam_pkcs11.conf
oval_extended_definitions:
smartcard_configure_cert_checking
4 changes: 1 addition & 3 deletions shared/templates/lineinfile/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
# strategy = restrict
# complexity = low
# disruption = low

{{{ ansible_lineinfile(msg='', path=PATH, new_line=TEXT, create='yes', state='present', insert_after='', insert_before='', rule_title=rule_title) -}}}

{{{ ansible_lineinfile(msg='', path=PATH, new_line=TEXT, regex=REGEX, create='yes', state='present', insert_after='', insert_before='', rule_title=rule_title) -}}}