-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplaybook.yml
43 lines (36 loc) · 1.21 KB
/
playbook.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
41
42
---
- hosts: all
tasks:
- name: Configuring user environment
include_tasks: tasks/setup_environment.yml
tags: [ always ]
- name: Configure instance facts
include_tasks: tasks/configure_instances.yml
loop: "{{instances|dict2items}}"
loop_control:
loop_var: instance_item
tags: [ always ]
- name: Configuring virtual tap interfaces
include_tasks: tasks/setup_networking.yml
loop: "{{instances|dict2items}}"
loop_control:
loop_var: instance_item
tags: [ create_interfaces ]
- name: Create Firecracker instances
include_tasks: tasks/create_instances.yml
loop: "{{instances|dict2items}}"
loop_control:
loop_var: instance_item
tags: [ create ]
- name: Destroy Firecracker instances
include_tasks: tasks/destroy_instances.yml
loop: "{{instances|dict2items}}"
loop_control:
loop_var: instance_item
tags: [ never, destroy, destroy_all ]
- name: Destroy virtual tap interfaces
include_tasks: tasks/destroy_networking.yml
loop: "{{instances|dict2items}}"
loop_control:
loop_var: instance_item
tags: [ never, destroy_interfaces, destroy_all ]