ebc91a9b93
Change: - No longer fail due to old Fedora/RHEL and our failure to try to cast gids to integers before trying to pass them to getgrgid() before trying to use them. - Add tests for user/mode for various unarchive formats. Test Plan: - New integration tests, ran against centos6 container Tickets: - Fixes #71903
35 lines
947 B
YAML
35 lines
947 B
YAML
- name: create our tar.gz unarchive destination
|
|
file:
|
|
path: '{{remote_tmp_dir}}/test-unarchive-tar-gz'
|
|
state: directory
|
|
|
|
- name: unarchive a tar.gz file
|
|
unarchive:
|
|
src: '{{remote_tmp_dir}}/test-unarchive.tar.gz'
|
|
dest: '{{remote_tmp_dir}}/test-unarchive-tar-gz'
|
|
remote_src: yes
|
|
register: unarchive02
|
|
|
|
- name: verify that the file was marked as changed
|
|
assert:
|
|
that:
|
|
- "unarchive02.changed == true"
|
|
# Verify that no file list is generated
|
|
- "'files' not in unarchive02"
|
|
|
|
- name: verify that the file was unarchived
|
|
file:
|
|
path: '{{remote_tmp_dir}}/test-unarchive-tar-gz/foo-unarchive.txt'
|
|
state: file
|
|
|
|
- name: remove our tar.gz unarchive destination
|
|
file:
|
|
path: '{{remote_tmp_dir}}/test-unarchive-tar-gz'
|
|
state: absent
|
|
|
|
- name: test owner/group perms
|
|
include_tasks: test_owner_group.yml
|
|
vars:
|
|
ext: tar.gz
|
|
archive: test-unarchive.tar.gz
|
|
testfile: foo-unarchive.txt
|