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
6d403481
Commit
6d403481
authored
Feb 26, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: simplify example playbooks.
parent
14251539
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
318 deletions
+27
-318
examples/playbook/connection_local.yml
examples/playbook/connection_local.yml
+5
-2
examples/playbook/roles/connection_local/tasks/main.yml
examples/playbook/roles/connection_local/tasks/main.yml
+0
-101
examples/playbook/roles/run_hostname_100_times/tasks/main.yml
...ples/playbook/roles/run_hostname_100_times/tasks/main.yml
+0
-202
examples/playbook/roles/whoami/tasks/main.yml
examples/playbook/roles/whoami/tasks/main.yml
+0
-8
examples/playbook/run_hostname_100_times.yml
examples/playbook/run_hostname_100_times.yml
+4
-2
examples/playbook/whoami.yml
examples/playbook/whoami.yml
+18
-3
No files found.
examples/playbook/connection_local.yml
View file @
6d403481
...
@@ -2,5 +2,8 @@
...
@@ -2,5 +2,8 @@
-
hosts
:
all
-
hosts
:
all
gather_facts
:
false
gather_facts
:
false
roles
:
tasks
:
-
connection_local
-
name
:
"
Run
hostname"
connection
:
local
command
:
hostname
with_sequence
:
start=1 end=100
examples/playbook/roles/connection_local/tasks/main.yml
deleted
100644 → 0
View file @
14251539
---
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
-
name
:
"
My
Role"
connection
:
local
command
:
hostname
examples/playbook/roles/run_hostname_100_times/tasks/main.yml
deleted
100644 → 0
View file @
14251539
---
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
-
name
:
"
My
Role"
command
:
hostname
examples/playbook/roles/whoami/tasks/main.yml
deleted
100644 → 0
View file @
14251539
---
-
name
:
"
This
command
should
run
as
the
SSH
user"
command
:
whoami
-
name
:
"
This
command
should
run
as
root"
become
:
true
command
:
whoami
examples/playbook/run_hostname_100_times.yml
View file @
6d403481
...
@@ -2,5 +2,7 @@
...
@@ -2,5 +2,7 @@
-
hosts
:
all
-
hosts
:
all
gather_facts
:
false
gather_facts
:
false
roles
:
tasks
:
-
run_hostname_100_times
-
name
:
"
Run
hostname"
command
:
hostname
with_sequence
:
start=1 end=100
examples/playbook/whoami.yml
View file @
6d403481
---
---
-
hosts
:
all
-
hosts
:
all
roles
:
tasks
:
-
whoami
-
name
:
"
This
command
should
run
as
the
SSH
user"
command
:
whoami
register
:
whoami
-
name
:
"
Verify
non-become
user
is
correct"
assert
:
that
:
"
whoami.stdout
==
'{{ansible_user_id}}'"
-
name
:
"
This
command
should
run
as
root"
become
:
true
command
:
whoami
register
:
whoami
-
name
:
"
Verify
become
user
is
correct"
assert
:
that
:
"
whoami.stdout
==
'root'"
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