-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook-crewauto.yml
More file actions
37 lines (31 loc) · 1.18 KB
/
playbook-crewauto.yml
File metadata and controls
37 lines (31 loc) · 1.18 KB
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
---
- name: Playbook with tags
hosts: planetexpress
vars:
cargo1: "prizes for claw crane"
cargo2: "popcorn"
cargo3: "pillows"
# this file will fill in the empty values found in the *.j2 files
vars_files:
- /home/student/mycode/vars/tempvars.yml
tasks:
- name: "Deploy orders to the crew"
template:
src: /home/student/mycode/templates/orders.txt.j2 #name of the template on ansible controller
dest: ~/orders.txt #name of the completed file to be placed on the target system
tags:
- orders
- name: "Deploy the cargo manifest"
template:
src: /home/student/mycode/templates/cargo_manifest.txt.j2 #name of the template on ansible controller
dest: ~/cargo_manifest.txt #name of the completed file to be placed on the target system
tags:
- cargo
- ship_prep
- name: "Install navigation charts"
template:
src: /home/student/mycode/templates/navigation_charts.cfg.j2 #name of the template on ansible controller
dest: ~/navigation_charts.cfg #name of the completed file to be placed on the target system
tags:
- nav
- ship_prep