forked from fnoble/piksi_firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprovision.yml
32 lines (28 loc) · 1.03 KB
/
provision.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
# Entry point for provisioning specification. First, groups by host
# platform and then chooses a provisioning role based on host key. A
# "role" here is a set of tasks to be performed in order, just like a
# bash script, but (i) allows you to easily control logging level,
# (ii) stores some state about its run so it can be safely run and
# then repeated, (iii) permits easy dependency ordering of tasks:
# i.e., all the reliability issues that are a pain with bash.
#
# If looking to make changes and finding this unfamiliar, check out
# this example: https://gist.github.com/marktheunissen/2979474 .
- hosts: all
tasks:
- group_by: key={{ ansible_distribution }}
- name: provision piksi development dependencies for Ubuntu
hosts: Ubuntu
gather_facts: false
roles:
- common_ubuntu
- name: provision piksi development dependencies for Debian
hosts: Debian
gather_facts: false
roles:
- common_ubuntu
- name: provision piksi development dependencies for OS X
hosts: MacOSX
gather_facts: false
roles:
- common_osx