|
|
@ -8,13 +8,13 @@
|
|
|
|
- name: create unreadable file
|
|
|
|
- name: create unreadable file
|
|
|
|
copy:
|
|
|
|
copy:
|
|
|
|
content: "Hello, World!"
|
|
|
|
content: "Hello, World!"
|
|
|
|
dest: /tmp/qux.txt
|
|
|
|
dest: "{{ output_dir }}/qux.txt"
|
|
|
|
mode: 0600
|
|
|
|
mode: '0600'
|
|
|
|
owner: root
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
|
|
|
|
- name: test slurp unreadable file
|
|
|
|
- name: test slurp unreadable file
|
|
|
|
slurp:
|
|
|
|
slurp:
|
|
|
|
src: '/tmp/qux.txt'
|
|
|
|
src: "{{ output_dir }}/qux.txt"
|
|
|
|
register: slurp_unreadable_file
|
|
|
|
register: slurp_unreadable_file
|
|
|
|
become: true
|
|
|
|
become: true
|
|
|
|
become_user: "{{ become_test_user }}"
|
|
|
|
become_user: "{{ become_test_user }}"
|
|
|
@ -30,14 +30,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: create unreadable directory
|
|
|
|
- name: create unreadable directory
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: /tmp/test_data
|
|
|
|
path: "{{ output_dir }}/test_data"
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|
|
|
|
mode: 0700
|
|
|
|
owner: root
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
|
|
|
|
- name: test slurp unreadable directory
|
|
|
|
- name: test slurp unreadable directory
|
|
|
|
slurp:
|
|
|
|
slurp:
|
|
|
|
src: /tmp/test_data
|
|
|
|
src: "{{ output_dir }}/test_data"
|
|
|
|
register: slurp_unreadable_dir
|
|
|
|
register: slurp_unreadable_dir
|
|
|
|
become: true
|
|
|
|
become: true
|
|
|
|
become_user: "{{ become_test_user }}"
|
|
|
|
become_user: "{{ become_test_user }}"
|
|
|
|