detect absence of acl in filesystem
This commit is contained in:
parent
2427fcc7f3
commit
eec84fca8a
|
@ -45,14 +45,17 @@
|
||||||
- name: Is .bash_history append-only
|
- name: Is .bash_history append-only
|
||||||
shell: lsattr /root/.bash_history | grep -E "^.*a.* "
|
shell: lsattr /root/.bash_history | grep -E "^.*a.* "
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
|
||||||
register: bash_history_append_only
|
register: bash_history_append_only
|
||||||
failed_when: False
|
failed_when: "'Inappropriate ioctl' in bash_history_append_only.stderr"
|
||||||
|
ignore_errors: yes
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Set .bash_history append-only
|
- name: Set .bash_history append-only
|
||||||
command: chattr +a /root/.bash_history
|
command: chattr +a /root/.bash_history
|
||||||
when: evolinux_root_bash_history_appendonly and bash_history_append_only.rc != 0
|
when:
|
||||||
|
- evolinux_root_bash_history_appendonly
|
||||||
|
- bash_history_append_only.rc != 0
|
||||||
|
- "'Inappropriate ioctl' not in bash_history_append_only.stderr"
|
||||||
|
|
||||||
- name: Setting vim as selected-editor
|
- name: Setting vim as selected-editor
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue