From 1fdd5b41f1eb99df1d1de436fa98ee1d72407e1f Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 26 Aug 2016 15:43:12 -0500 Subject: [PATCH] Remove extra AIDE tasks The AIDE tasks were copied to aide.yml in change I85d65738fde064b06b1147c529b22c3f44a33e94, but they weren't removed from misc.yml. This patch cleans up misc.yml. Change-Id: I60aa62ff688d32c14031773d35af29b3cf6b6fd6 --- tasks/misc.yml | 88 -------------------------------------------------- 1 file changed, 88 deletions(-) diff --git a/tasks/misc.yml b/tasks/misc.yml index b7ad1810..62f9bda4 100644 --- a/tasks/misc.yml +++ b/tasks/misc.yml @@ -13,94 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: V-38489 - Install AIDE (with apt) - apt: - name: "{{ item }}" - state: "{{ security_package_state }}" - with_items: - - aide - - aide-common - when: ansible_pkg_mgr == 'apt' - tags: - - cat2 - - V-38489 - -- name: V-38489 - Install AIDE (with yum) - yum: - name: aide - state: "{{ security_package_state }}" - when: ansible_pkg_mgr == 'yum' - tags: - - cat2 - - V-38489 - -- name: Verify that AIDE configuration directory exists - stat: - path: /etc/aide/aide.conf.d - register: aide_conf - always_run: true - tags: - - always - -- name: V-38489 - Exclude certain directories from AIDE - template: - src: ZZ_aide_exclusions.j2 - dest: /etc/aide/aide.conf.d/ZZ_aide_exclusions - when: aide_conf.stat.exists | bool - tags: - - cat2 - - V-38489 - -- name: Check to see if AIDE database is already in place - stat: - path: "{{ aide_database_file }}" - register: aide_database - always_run: True - tags: - - always - -- name: V-38489 - Initialize AIDE (this will take a few minutes) - shell: "aideinit" - register: aide_init - when: - - aide_conf.stat.exists | bool - - not aide_database.stat.exists | bool - - security_initialize_aide | bool - tags: - - cat2 - - V-38489 - -- name: V-38489 - Move AIDE database into place - shell: "mv /var/lib/aide/aide.db.new.gz {{ aide_database_file }}" - when: - - aide_init | changed - - ansible_os_family == 'RedHat' - tags: - - cat2 - - V-38489 - -- name: Create AIDE cron job (for V-38670) - cron: - name: aide - cron_file: aide - user: root - special_time: daily - job: "aide --check" - when: - - ansible_os_family == 'RedHat' - tags: - - cat2 - - V-38670 - -- name: Check for AIDE cron job (for V-38670) - stat: - path: "{{ aide_cron_job_path }}" - register: v38670_result - changed_when: False - tags: - - cat2 - - V-38670 - - name: V-38670 - System must detect unauthorized changes to software and information fail: msg: "AIDE cron job is missing"