Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GEANT-OAV
ansible-examples
Commits
be3ea1ca
Commit
be3ea1ca
authored
Dec 08, 2021
by
Dónal Cunningham
Browse files
DC - reorganised the show version playbooks
parent
6d1d0033
Changes
32
Hide whitespace changes
Inline
Side-by-side
Section
1
/show_version/show_version.yaml
→
Section
2/playbooks
/show_version/show_version.yaml
View file @
be3ea1ca
---
-
name
:
Play 1 - Show the software version on an Arista switch
hosts
:
veos_hosts
gather_facts
:
"
no
"
gather_facts
:
no
connection
:
local
tasks
:
-
name
:
Task 1.1 - Gather version from switches using the raw module
...
...
Section
1
/show_version/show_version_and_uptime.output
→
Section
2/playbooks
/show_version/show_version_and_uptime.output
View file @
be3ea1ca
File moved
Section
1
/show_version/show_version_and_uptime.yaml
→
Section
2/playbooks
/show_version/show_version_and_uptime.yaml
View file @
be3ea1ca
File moved
Section
1
/show_version/show_version_arista.output
→
Section
2/playbooks
/show_version/show_version_arista.output
View file @
be3ea1ca
File moved
Section
1
/show_version/show_version_arista.yaml
→
Section
2/playbooks
/show_version/show_version_arista.yaml
View file @
be3ea1ca
---
-
name
:
Play 1 - Show the software version on an Arista switch
hosts
:
veos_hosts
gather_facts
:
"
no
"
gather_facts
:
no
connection
:
local
tasks
:
-
name
:
Task 1.1 - Gather version from switches
...
...
Section
1
/show_version/show_version_juniper.output
→
Section
2/playbooks
/show_version/show_version_juniper.output
View file @
be3ea1ca
File moved
Section
1
/show_version/show_version_juniper.yaml
→
Section
2/playbooks
/show_version/show_version_juniper.yaml
View file @
be3ea1ca
---
-
name
:
Play 1 - Show the software version on a vSRX
hosts
:
vSRX
gather_facts
:
"
no
"
gather_facts
:
no
connection
:
local
tasks
:
-
name
:
Task 1.1 - Gather version from switches
...
...
Section2/playbooks/show_version_simple.yaml
deleted
100644 → 0
View file @
6d1d0033
---
-
name
:
Play 1 - Show the software version on an Arista switch
hosts
:
veos
gather_facts
:
"
no"
connection
:
local
tasks
:
-
name
:
Task 1.1 - Gather version from switches
raw
:
'
show
version
|
include
Software'
register
:
showvers
-
name
:
Task 1.2 - Print output
debug
:
var=showvers.stdout_lines[0]
-
name
:
Play 2 - Verify switch software
hosts
:
veos
vars
:
eos_version
:
"
4.25"
gather_facts
:
"
no"
connection
:
local
tasks
:
-
name
:
Task 2.1 - Assert we are running the correct EOS version ({{eos_version}})
assert
:
that
:
-
"
'{{eos_version}}'
in
showvers.stdout_lines[0]"
msg
:
"
Oh
noes!
Switch
not
running
eOS
{{eos_version}}!"
Section2/playbooks/show_version_with_raw.yaml
deleted
100644 → 0
View file @
6d1d0033
---
-
name
:
Check the version of code on a switch
hosts
:
veos
gather_facts
:
no
# or False
tasks
:
-
name
:
Gather version from switches
raw
:
‘show version’
register
:
show_version
Section2/playbooks/simple_example_playbook.yaml
View file @
be3ea1ca
---
# Oh look, a comment…
# …spread out over multiple lines
# This is not a real playbook - please do not attempt to run it.
# If you do it anyway, you will get this error:
# "ERROR! no module/action detected in task."
-
name
:
Set up Apache
# Or nginx, or Mongoose
hosts
:
webservers
tasks
:
...
...
@@ -8,4 +13,4 @@
-
name
:
generate Apache config file
-
name
:
download Web content to relevant directory
-
name
:
restart Apache
-
name
:
eat cake
-
name
:
eat cake
\ No newline at end of file
Section2/playbooks/tree.txt
→
Section2/playbooks/tree
_directory_structure
.txt
View file @
be3ea1ca
File moved
Section2/playbooks/
simple_
variables.yaml
→
Section2/playbooks/variable
_file
s.yaml
View file @
be3ea1ca
File moved
Prev
1
2
Next
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