mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 23:55:19 +01:00
fix file mode and 2.15 ignore
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
1a2cdc233b
commit
4905841d2f
2 changed files with 18 additions and 2 deletions
|
|
@ -39,7 +39,7 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ test_file }}"
|
path: "{{ test_file }}"
|
||||||
state: touch
|
state: touch
|
||||||
mode: "0755"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Create ansible dir
|
- name: Create ansible dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
@ -56,11 +56,19 @@
|
||||||
state: present
|
state: present
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
- name: Debug ansible.posix.acl output
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "{{ output }}"
|
||||||
|
|
||||||
- name: Get getfacl output
|
- name: Get getfacl output
|
||||||
ansible.builtin.command: /bin/getfacl {{ test_file | quote }}
|
ansible.builtin.command: /bin/getfacl {{ test_file | quote }}
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: getfacl_output
|
register: getfacl_output
|
||||||
|
|
||||||
|
- name: Debug getfacl output
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "{{ getfacl_output.stdout_lines }}"
|
||||||
|
|
||||||
- name: Verify Output
|
- name: Verify Output
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
|
|
@ -74,11 +82,19 @@
|
||||||
path: "{{ test_file }}"
|
path: "{{ test_file }}"
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
- name: Debug ansible.posix.acl output
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "{{ output }}"
|
||||||
|
|
||||||
- name: Get getfacl output
|
- name: Get getfacl output
|
||||||
ansible.builtin.command: /bin/getfacl {{ test_file | quote }}
|
ansible.builtin.command: /bin/getfacl {{ test_file | quote }}
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: getfacl_output
|
register: getfacl_output
|
||||||
|
|
||||||
|
- name: Debug getfacl output
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "{{ getfacl_output.stdout_lines }}"
|
||||||
|
|
||||||
- name: Verify output
|
- name: Verify output
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
|
|
@ -95,6 +111,7 @@
|
||||||
- "'mask::r--' in getfacl_output.stdout_lines"
|
- "'mask::r--' in getfacl_output.stdout_lines"
|
||||||
- "'other::r--' in getfacl_output.stdout_lines"
|
- "'other::r--' in getfacl_output.stdout_lines"
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
#
|
||||||
- name: Removes the acl for ansible user on a specific file
|
- name: Removes the acl for ansible user on a specific file
|
||||||
ansible.posix.acl:
|
ansible.posix.acl:
|
||||||
path: "{{ test_file }}"
|
path: "{{ test_file }}"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
plugins/modules/synchronize.py pylint:disallowed-name
|
|
||||||
plugins/modules/synchronize.py use-argspec-type-path
|
plugins/modules/synchronize.py use-argspec-type-path
|
||||||
plugins/modules/synchronize.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/synchronize.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/synchronize.py validate-modules:nonexistent-parameter-documented
|
plugins/modules/synchronize.py validate-modules:nonexistent-parameter-documented
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue