Skip to content

Commit

Permalink
fix(debian-aide-unprivileged-report): ensure scripts dir exists (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
juju4 committed Nov 23, 2024
1 parent 46ac07c commit a6cd00d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/debian-aide-unprivileged-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
mode: '0440'
owner: root

- name: Have custom aide cron.daily script
ansible.builtin.template:
src: "{{ aide_hids_crondaily | default('cron.daily-aide.j2') }}"
dest: /usr/local/scripts/cron.daily-aide
mode: '0755'

- name: Ensure scripts dir exists
ansible.builtin.file:
path: /usr/local/scripts
state: directory
mode: '0755'
owner: root

- name: Have custom aide cron.daily script
ansible.builtin.template:
src: "{{ aide_hids_crondaily | default('cron.daily-aide.j2') }}"
dest: /usr/local/scripts/cron.daily-aide
mode: '0755'

- name: Scheduled unprivileged daily script
ansible.builtin.cron:
name: aide hids unprivileged cron.daily
Expand Down

0 comments on commit a6cd00d

Please sign in to comment.