--- - 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 }}" - 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 }}" - hosts: os_Gentoo gather_facts: True roles: - role: gentoo vars: dev_machine: "{{ _dev_machine }}" - role: common vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" - nightly_neovim: "{{ _nightly_neovim }}" - hosts: os_Funtoo gather_facts: True roles: - role: gentoo vars: dev_machine: "{{ _dev_machine }}" - role: common vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" - nightly_neovim: "{{ _nightly_neovim }}" - 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 }}" - 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 }}" - hosts: os_Pop!_OS 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 }}" - 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 }}"