Conditionally decide on how to operate on 'Desktop' for Ansible

This commit is contained in:
Scott Wallace 2019-01-13 16:52:41 +00:00
parent 4231fefb9d
commit f8fb630c42
5 changed files with 12 additions and 18 deletions

10
.ansible/desktop.yaml Normal file
View file

@ -0,0 +1,10 @@
- name: Desktop installation and configuration
hosts: desktop
roles:
- role: linux_desktop
when: ansible_system == 'Linux'
- role: jaredhocutt.gnome_extensions
when: ansible_system == 'Linux'
- role: mac_desktop
when: ansible_system == 'Darwin'

View file

@ -1,9 +1,4 @@
mac_desktops:
hosts:
localhost:
ansible_connection: local
linux_desktops:
desktop:
hosts:
localhost:
ansible_connection: local

View file

@ -1,7 +0,0 @@
- name: Linux desktops
hosts: linux_desktops
roles:
- linux_desktop
- jaredhocutt.gnome_extensions
vars:
gnome_extension_ids: "{{ gnome_extensions }}"

View file

@ -1,4 +0,0 @@
- name: Mac desktops
hosts: mac_desktops
roles:
- mac_desktop

View file

@ -45,7 +45,7 @@ linux_apps:
- skype
- wireguard-ammp
gnome_extensions:
gnome_extension_ids:
- 358 # activities configurator
- 1206 # clock-override
- 28 # gtile