2017-12-31 00:56:01 +01:00
|
|
|
---
|
|
|
|
- name: register os-specific variables
|
|
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
|
|
|
|
|
|
|
# i3 packages
|
|
|
|
- name: define i3_packages
|
|
|
|
set_fact:
|
|
|
|
i3_packages: "{{ __i3_packages | list }}"
|
|
|
|
when: i3_packages is not defined
|
|
|
|
|
|
|
|
- name: define i3_packages_extra
|
|
|
|
set_fact:
|
|
|
|
i3_packages: "{{ i3_packages | list + i3_packages_extra | list }}"
|
|
|
|
when: i3_packages_extra is defined
|
|
|
|
|
|
|
|
# i3 workspaces
|
|
|
|
- name: define i3_packages
|
|
|
|
set_fact:
|
|
|
|
i3_workspaces: "{{ __i3_workspaces | list }}"
|
|
|
|
when: i3_workspaces is not defined
|
|
|
|
|
|
|
|
# i3 keybindings
|
|
|
|
- name: define i3_packages
|
|
|
|
set_fact:
|
|
|
|
i3_keybindings: "{{ __i3_keybindings | list }}"
|
2019-02-20 11:53:10 +01:00
|
|
|
when:
|
|
|
|
- i3_keybindings is not defined
|
|
|
|
- __i3_keybindings is defined
|
2017-12-31 00:56:01 +01:00
|
|
|
|
|
|
|
- name: define extra i3 keybindings
|
|
|
|
set_fact:
|
2019-02-20 11:53:10 +01:00
|
|
|
i3_keybindings: "{{ i3_keybindings_extra | list + i3_keybindings | list }}"
|
|
|
|
when:
|
|
|
|
- i3_keybindings_extra is defined
|
|
|
|
- i3_keybindings is defined
|
|
|
|
|
|
|
|
- name: define extra i3 keybindings
|
|
|
|
set_fact:
|
|
|
|
i3_keybindings: "{{ i3_keybindings_extra | list }}"
|
|
|
|
when:
|
|
|
|
- i3_keybindings_extra is defined
|
|
|
|
- i3_keybindings is not defined
|