Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
6326daa3
Commit
6326daa3
authored
Jan 14, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update modules for unarchive handling user,group,mode and add integration test for the same
parent
ee469c2a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
8 deletions
+47
-8
lib/ansible/modules/core
+1
-1
lib/ansible/modules/extras
+1
-1
test/integration/roles/test_unarchive/tasks/main.yml
+43
-4
v2/ansible/modules/core
+1
-1
v2/ansible/modules/extras
+1
-1
No files found.
core
@
e3759bd0
Subproject commit
8c8be0e48c70d2aa830bf5d55cab5d13018ca83
1
Subproject commit
e3759bd0d396d63b869732a63ecae5ca7a2a964
1
extras
@
86f2124c
Subproject commit
ffa8abf9793a92bff6708d1f9a2a45475177f834
Subproject commit
86f2124c0d62359a0672fa0a81f85c0850c05dd1
test/integration/roles/test_unarchive/tasks/main.yml
View file @
6326daa3
...
...
@@ -95,13 +95,13 @@
dest
:
"
{{output_dir
|
expanduser}}/test-unarchive-tar-gz"
copy
:
no
creates
:
"
{{output_dir}}/test-unarchive-tar-gz/foo-unarchive.txt"
register
:
unarchive02
c
register
:
unarchive02
d
-
name
:
verify that the file was not marked as changed
assert
:
that
:
-
"
unarchive02
c
.changed
==
false"
-
"
unarchive02
c
.skipped
==
true"
-
"
unarchive02
d
.changed
==
false"
-
"
unarchive02
d
.skipped
==
true"
-
name
:
remove our tar.gz unarchive destination
file
:
path={{output_dir}}/test-unarchive-tar-gz state=absent
...
...
@@ -121,7 +121,7 @@
-
name
:
verify that the file was unarchived
file
:
path={{output_dir}}/test-unarchive-zip/foo-unarchive.txt state=file
-
name
:
remove our
tar
unarchive destination
-
name
:
remove our
zip
unarchive destination
file
:
path={{output_dir}}/test-unarchive-zip state=absent
-
name
:
remove our test file for the archive
...
...
@@ -150,3 +150,42 @@
-
name
:
remove our unarchive destination
file
:
path=/tmp/foo-unarchive.txt state=absent
-
name
:
create our unarchive destination
file
:
path={{output_dir}}/test-unarchive-tar-gz state=directory
-
name
:
unarchive and set mode
unarchive
:
src
:
"
{{
output_dir
}}/test-unarchive.tar.gz"
dest
:
"
{{
output_dir
|
expanduser
}}/test-unarchive-tar-gz"
copy
:
no
mode
:
"
u+rwX,g-rwx,o-rwx"
register
:
unarchive06
-
name
:
Test that the file modes were changed
stat
:
path
:
"
{{
output_dir
|
expanduser
}}/test-unarchive-tar-gz/foo-unarchive.txt"
register
:
unarchive06_stat
-
name
:
Test that the file modes were changed
assert
:
that
:
-
"
unarchive06.changed
==
true"
-
"
unarchive06_stat.stat.mode
==
'0600'"
-
name
:
unarchive and set mode
unarchive
:
src
:
"
{{
output_dir
}}/test-unarchive.tar.gz"
dest
:
"
{{
output_dir
|
expanduser
}}/test-unarchive-tar-gz"
copy
:
no
mode
:
"
u+rwX,g-rwx,o-rwx"
register
:
unarchive07
-
name
:
Test that the files were not changed
assert
:
that
:
-
"
unarchive07.changed
==
false"
-
name
:
remove our tar.gz unarchive destination
file
:
path={{output_dir}}/test-unarchive-tar-gz state=absent
core
@
e3759bd0
Subproject commit
b34075ecb9a85f913b2a59edc0fac243570c5fe0
Subproject commit
e3759bd0d396d63b869732a63ecae5ca7a2a9641
extras
@
86f2124c
Subproject commit 8
a4f07eecd2bb877f51b7b04b5352efa6076cce5
Subproject commit 8
6f2124c0d62359a0672fa0a81f85c0850c05dd1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment