dotfiles/playbooks/main.yml
2019-07-30 21:26:50 -04:00

54 lines
1.2 KiB
YAML

---
- name: Include prompts playbook
import_playbook: input.yml
- name: Find out what kind of host we are
hosts: all
tasks:
- name: Classify host
group_by:
key: os_{{ ansible_facts['distribution'] }}
- hosts: os_MacOSX
gather_facts: True
roles:
- role: macos
vars:
- dev_machine: "{{ _dev_machine }}"
- role: common
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"
- hosts: os_Fedora
gather_facts: True
roles:
- role: fedora
vars:
dev_machine: "{{ _dev_machine }}"
- role: common
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"
- hosts: os_Archlinux
gather_facts: True
roles:
- role: arch
vars:
dev_machine: "{{ _dev_machine }}"
- role: common
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"
- hosts: os_Ubuntu
gather_facts: False
roles:
- role: ubuntu
vars:
dev_machine: "{{ _dev_machine }}"
- role: common
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"