From 551151ebf10aa4bf143d63696d431062c1c7ccfa Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 16 Apr 2018 19:46:18 +0800 Subject: basic/periodic: Inline daily security status --- roles/basic/tasks/main.yml | 12 ++++++++++++ roles/security/tasks/main.yml | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'roles') diff --git a/roles/basic/tasks/main.yml b/roles/basic/tasks/main.yml index 8f3903c..324ca9f 100644 --- a/roles/basic/tasks/main.yml +++ b/roles/basic/tasks/main.yml @@ -33,6 +33,18 @@ state: touch mode: 0600 +- name: periodic - touch config file + file: + path: /etc/periodic.conf + state: touch + mode: 0644 + +- name: periodic - inline daily security status + lineinfile: + path: /etc/periodic.conf + regexp: '^#?\s*daily_status_security_inline' + line: "daily_status_security_inline=YES" + - name: csh - install /etc/csh.cshrc copy: src: csh.cshrc diff --git a/roles/security/tasks/main.yml b/roles/security/tasks/main.yml index 1976def..043792f 100644 --- a/roles/security/tasks/main.yml +++ b/roles/security/tasks/main.yml @@ -27,12 +27,6 @@ dest: /etc/periodic/daily/600.clean-pf mode: 0755 -- name: periodic - touch config file - file: - path: /etc/periodic.conf - state: touch - mode: 0644 - - name: periodic - enable clean-pf blockinfile: path: /etc/periodic.conf -- cgit v1.2.2