Skip to content

Commit

Permalink
Create audit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prench authored Oct 17, 2019
1 parent 40def9d commit a947fe9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
- name: Configure Aix Auditing
hosts: aixsse
tasks:

- name: check filesystem exists
command: lsfs /audit
register: fsaudit
ignore_errors: yes

- name: Create filesystem
aix_filesystem:
filesystem: /audit
size: 512M
state: present
vg: rootvg
when: "fsaudit.rc == 1"

- name: mount filesystem
aix_filesystem:
filesystem: /audit
state: mounted

- name: Set permissions under /audit
file:
path: /audit
mode: 0640
recurse: yes

- name: Set permissions/ownership on /audit
file:
path: /audit
owner: root
group: audit
mode: 0750

0 comments on commit a947fe9

Please sign in to comment.