Separate out Ansible tasks per OS

This commit is contained in:
Scott Wallace 2019-01-20 17:59:11 +00:00
parent 314eb28cc1
commit 8fd3f96ced
6 changed files with 8 additions and 8 deletions

View file

@ -1,15 +1,15 @@
- name: Common desktop tasks
import_tasks: firefox.yaml
- name: Linux desktop tasks - name: Linux desktop tasks
block: block:
- import_tasks: software.yaml - import_tasks: linux/software.yaml
- import_tasks: config.yaml - import_tasks: linux/config.yaml
when: ansible_system == 'Linux' when: ansible_system == 'Linux'
- name: OS X desktop tasks - name: OS X desktop tasks
block: block:
- import_tasks: homebrew.yaml - import_tasks: darwin/homebrew.yaml
- import_tasks: mas.yaml - import_tasks: darwin/mas.yaml
- import_tasks: prefs.yaml - import_tasks: darwin/prefs.yaml
when: ansible_system == 'Darwin' when: ansible_system == 'Darwin'
- name: Common desktop tasks
import_tasks: firefox.yaml