forked from ansible/test-network-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheos.yaml
28 lines (22 loc) · 737 Bytes
/
eos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- hosts: eos
gather_facts: no
connection: local
vars:
limit_to: "*"
pre_tasks:
- name: enable cli on remote device
eos_eapi:
enable_http: yes
enable_https: yes
enable_local_http: yes
enable_socket: yes
provider: "{{ cli }}"
register: eos_eapi_output
connection: local
roles:
- { role: test_eos_command, when: "limit_to in ['*', 'eos_command']" }
- { role: test_eos_config, when: "limit_to in ['*', 'eos_config']" }
- { role: test_eos_template, when: "limit_to in ['*', 'eos_template']" }
- { role: test_eos_facts, when: "limit_to in ['*', 'eos_facts']" }
- { role: test_eos_eapi, debug: yes, when: "limit_to in ['*', 'eos_eapi']"}