Conditionally decide on how to operate on 'Desktop' for Ansible
This commit is contained in:
parent
4231fefb9d
commit
f8fb630c42
10
.ansible/desktop.yaml
Normal file
10
.ansible/desktop.yaml
Normal 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'
|
|
@ -1,9 +1,4 @@
|
|||
mac_desktops:
|
||||
hosts:
|
||||
localhost:
|
||||
ansible_connection: local
|
||||
|
||||
linux_desktops:
|
||||
desktop:
|
||||
hosts:
|
||||
localhost:
|
||||
ansible_connection: local
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
- name: Linux desktops
|
||||
hosts: linux_desktops
|
||||
roles:
|
||||
- linux_desktop
|
||||
- jaredhocutt.gnome_extensions
|
||||
vars:
|
||||
gnome_extension_ids: "{{ gnome_extensions }}"
|
|
@ -1,4 +0,0 @@
|
|||
- name: Mac desktops
|
||||
hosts: mac_desktops
|
||||
roles:
|
||||
- mac_desktop
|
|
@ -45,7 +45,7 @@ linux_apps:
|
|||
- skype
|
||||
- wireguard-ammp
|
||||
|
||||
gnome_extensions:
|
||||
gnome_extension_ids:
|
||||
- 358 # activities configurator
|
||||
- 1206 # clock-override
|
||||
- 28 # gtile
|
||||
|
|
Loading…
Reference in a new issue