Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d554a85 commit af1f833Copy full SHA for af1f833
ansible/files/cron.deny
@@ -0,0 +1,2 @@
1
+ubuntu
2
+postgres
ansible/playbook.yml
@@ -104,6 +104,11 @@
104
src: files/logrotate-postgres-csv
105
dest: /etc/logrotate.d/postgres-csv
106
107
+ - name: Disable cron access
108
+ copy:
109
+ src: files/cron.deny
110
+ dest: /etc/cron.deny
111
+
112
- name: Configure logrotation to run every hour
113
shell:
114
cmd: |
@@ -112,12 +117,6 @@
117
systemctl reenable logrotate.timer
118
become: yes
119
115
- - name: restart crond
116
- systemd:
- state: restarted
- name: cron
- become: yes
120
-
121
- name: Enhance fail2ban
122
import_tasks: tasks/setup-fail2ban.yml
123
0 commit comments