-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.yml
40 lines (36 loc) · 804 Bytes
/
tests.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Main Ansible playbook that will call all Roles
---
- name: Test Connection to Hosts
hosts: all
tasks:
# - name: Generate KEY
# openssh_keypair:
# path: /tmp/id_ssh_rsa
# force: True
#
# - name: Add KEY to Hosts
# authorized_key:
## user: ansible_user
# state: present
# key: "{{ lookup('file', 'id_rsa.pub') }}"
# path: /tmp/id_ssh_rsa
- ping:
- name: Mef_eLine Tests
hosts: all
roles:
# - python
# - create_vlan
# - create_evc
- test_one
- delete_vlan
- delete_evc
- cleaning
- name: Delete KEY
hosts: all
tasks:
- name: Delete KEY from Hosts
authorized_key:
user: ansible_user
state: absent
key: "{{ lookup('file', 'id_rsa.pub') }}"
path: /tmp/id_ssh_rsa