dotfiles/playbooks/main.yml
Anthony Cicchetti 9ceb41ba29 hakatime
2020-07-07 15:28:59 -04:00

76 lines
1.9 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 }}"
- 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 }}"