Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
9fee0bd1
Commit
9fee0bd1
authored
Feb 27, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ansible: basic regression test for delegation/sudo
parent
1b090a6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
9 deletions
+86
-9
examples/playbook/connection_local.yml
examples/playbook/connection_local.yml
+0
-9
examples/playbook/delegate_to.yml
examples/playbook/delegate_to.yml
+86
-0
No files found.
examples/playbook/connection_local.yml
deleted
100644 → 0
View file @
1b090a6c
---
-
hosts
:
all
gather_facts
:
false
tasks
:
-
name
:
"
Run
hostname"
connection
:
local
command
:
hostname
with_sequence
:
start=1 end=100
examples/playbook/delegate_to.yml
0 → 100644
View file @
9fee0bd1
---
-
hosts
:
all
gather_facts
:
false
tasks
:
#
# delegate_to, no sudo
#
-
name
:
"
delegate_to,
no
sudo"
copy
:
dest
:
/tmp/delegate_to.yml.txt
content
:
"
Hello,
world."
register
:
out
delegate_to
:
localhost
-
name
:
"
delegate_to,
no
sudo"
assert
:
that
:
"
lookup('file',
'/tmp/delegate_to.yml.txt')
==
'Hello,
world.'"
-
name
:
"
delegate_to,
no
sudo"
file
:
path
:
/tmp/delegate_to.yml.txt
state
:
absent
delegate_to
:
localhost
#
# connection:local, no sudo
#
-
name
:
"
connection:local,
no
sudo"
copy
:
dest
:
/tmp/delegate_to.yml.txt
content
:
"
Hello,
world."
register
:
out
connection
:
local
-
name
:
"
connection:local,
no
sudo"
assert
:
that
:
"
lookup('file',
'/tmp/delegate_to.yml.txt')
==
'Hello,
world.'"
-
name
:
"
connection:local,
no
sudo"
file
:
path
:
/tmp/delegate_to.yml.txt
state
:
absent
connection
:
local
#
# delegate_to, sudo
#
-
name
:
"
delegate_to,
sudo"
shell
:
whoami > /tmp/delegate_to.yml.txt
delegate_to
:
localhost
become
:
true
-
name
:
"
delegate_to,
sudo"
assert
:
that
:
"
lookup('file',
'/tmp/delegate_to.yml.txt')
==
'root'"
-
name
:
"
delegate_to,
sudo"
file
:
path
:
/tmp/delegate_to.yml.txt
state
:
absent
delegate_to
:
localhost
become
:
true
#
# connection:local, sudo
#
-
name
:
"
connection:local,
sudo"
shell
:
whoami > /tmp/delegate_to.yml.txt
connection
:
local
become
:
true
-
name
:
"
connection:local,
sudo"
assert
:
that
:
"
lookup('file',
'/tmp/delegate_to.yml.txt')
==
'root'"
-
name
:
"
connection:local,
sudo"
file
:
path
:
/tmp/delegate_to.yml.txt
state
:
absent
connection
:
local
become
:
true
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