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
57c77691
Commit
57c77691
authored
Dec 04, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a check that tilde expansion with copy works
parent
1eb31249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
test/integration/roles/test_sudo/files/baz.txt
+1
-0
test/integration/roles/test_sudo/tasks/main.yml
+19
-0
No files found.
test/integration/roles/test_sudo/files/baz.txt
0 → 100644
View file @
57c77691
testing tilde expansion with sudo
test/integration/roles/test_sudo/tasks/main.yml
View file @
57c77691
...
...
@@ -19,6 +19,7 @@
-
assert
:
that
:
-
"
results.stat.exists
==
True"
-
"
results.stat.path|dirname|basename
==
'{{
sudo_test_user
}}'"
-
name
:
tilde expansion honors sudo in template
sudo
:
True
...
...
@@ -35,6 +36,24 @@
-
assert
:
that
:
-
"
results.stat.exists
==
True"
-
"
results.stat.path|dirname|basename
==
'{{
sudo_test_user
}}'"
-
name
:
tilde expansion honors sudo in copy
sudo
:
True
sudo_user
:
"
{{
sudo_test_user
}}"
copy
:
src
:
baz.txt
dest
:
"
~/baz.txt"
-
name
:
check that the path in the user's home dir was created
stat
:
path
:
"
~{{
sudo_test_user
}}/baz.txt"
register
:
results
-
assert
:
that
:
-
"
results.stat.exists
==
True"
-
"
results.stat.path|dirname|basename
==
'{{
sudo_test_user
}}'"
-
name
:
Remove test user and their home dir
user
:
...
...
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