Skip to content

Commit

Permalink
Merge pull request dev-sec#130 from fazlearefin/master
Browse files Browse the repository at this point in the history
Fix ansible.cfg and use comment filter
  • Loading branch information
rndmh3ro authored Jul 17, 2017
2 parents b42b8db + 7117d77 commit 874b01f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
# finds first

[defaults]
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d by {uid} on {host}

ansible_managed = Ansible managed: {file} modified by {uid} on {host}
# additional paths to search for roles in, colon separated
roles_path = ../

[ssh_connection]
scp_if_ssh = True
2 changes: 1 addition & 1 deletion templates/limits.conf.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# {{ansible_managed}}
# {{ ansible_managed | comment }}
# Prevent core dumps for all users. These are usually only needed by developers and may contain sensitive information.
* hard core 0
2 changes: 1 addition & 1 deletion templates/modules.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {{ ansible_managed }}
# {{ ansible_managed | comment }}
# This file contains the names of kernel modules that should be loaded at boot time, one per line. Lines beginning with "#" are ignored.
#
# A list of all available kernel modules kann be found with `find /lib/modules/$(uname -r)/kernel/`
Expand Down
2 changes: 1 addition & 1 deletion templates/profile.conf.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {{ ansible_managed }}
# {{ ansible_managed | comment }}

# Disable core dumps via soft limits for all users. Compliance to this setting is voluntary and can be modified by users up to a hard limit. This setting is a sane default.
ulimit -S -c 0 > /dev/null 2>&1
2 changes: 1 addition & 1 deletion templates/rhel_libuser.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# See libuser.conf(5) for more information.

# {{ ansible_managed }}
# {{ ansible_managed | comment }}

# Do not modify the default module list if you care about unattended calls
# to programs (i.e., scripts) working!
Expand Down
2 changes: 1 addition & 1 deletion templates/rhel_sysconfig_init.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {{ ansible_managed }}
# {{ ansible_managed | comment }}

# color => new RH6.0 bootup
# verbose => old-style bootup
Expand Down
2 changes: 1 addition & 1 deletion templates/rhel_system_auth.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {{ ansible_managed }}
# {{ ansible_managed | comment }}
#---

#%PAM-1.0
Expand Down
2 changes: 1 addition & 1 deletion templates/securetty.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {{ ansible_managed }}
# {{ ansible_managed | comment }}


# A list of TTYs, from which root can log in
Expand Down

0 comments on commit 874b01f

Please sign in to comment.