dotfiles/playbooks/main.yml
Anthony Cicchetti 24c016548d Emacs plus
2021-01-15 12:16:53 -05:00

77 lines
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 }}"
- nightly_neovim: "{{ _nightly_neovim }}"
- emacs_plus: "{{ _emacs_plus }}"
- hakatime_api_key: "{{ _hakatime_api_key }}"
- 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 }}"
- nightly_neovim: "{{ _nightly_neovim }}"
- hakatime_api_key: "{{ _hakatime_api_key }}"
- 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 }}"
- nightly_neovim: "{{ _nightly_neovim }}"
- hakatime_api_key: "{{ _hakatime_api_key }}"
- 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 }}"
- nightly_neovim: "{{ _nightly_neovim }}"
- hakatime_api_key: "{{ _hakatime_api_key }}"
- hosts: os_openSUSE*
gather_facts: True
roles:
- role: opensuse
vars:
dev_machine: "{{ _dev_machine }}"
- role: common
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"
- nightly_neovim: "{{ _nightly_neovim }}"
- hakatime_api_key: "{{ _hakatime_api_key }}"