2019-02-25 19:49:14 +00:00
|
|
|
- name: 'Config: Checkout some repositories for local config'
|
2019-01-12 19:03:34 +00:00
|
|
|
tags:
|
|
|
|
- config
|
2019-02-25 19:49:14 +00:00
|
|
|
- repos
|
2019-01-12 19:03:34 +00:00
|
|
|
git:
|
|
|
|
repo: "{{ item.repo }}"
|
|
|
|
dest: "{{ item.dest }}"
|
2019-01-20 10:51:09 +00:00
|
|
|
loop: "{{ config_repos }}"
|
2019-01-20 10:14:18 +00:00
|
|
|
|
2019-02-25 19:32:49 +00:00
|
|
|
- name: 'Conky: Configuration'
|
2019-01-20 10:14:18 +00:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- conky
|
|
|
|
template:
|
2019-01-20 10:58:22 +00:00
|
|
|
src: 'templates/conkyrc.j2'
|
|
|
|
dest: '~/.conkyrc'
|
2019-02-25 19:49:14 +00:00
|
|
|
mode: '0400'
|
2019-02-25 19:32:49 +00:00
|
|
|
|
2019-02-25 19:49:14 +00:00
|
|
|
- name: 'Wireguard'
|
2019-02-25 19:32:49 +00:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- wireguard
|
|
|
|
block:
|
2019-02-25 19:49:14 +00:00
|
|
|
- set_fact:
|
|
|
|
wgconfig_path: /etc/wireguard/wg0.conf
|
|
|
|
|
|
|
|
- name: 'Wireguard: Check for existing configuration'
|
|
|
|
stat:
|
|
|
|
path: "{{ wgconfig_path }}"
|
2019-02-25 19:32:49 +00:00
|
|
|
register: wgconfig
|
2019-02-25 19:49:14 +00:00
|
|
|
|
|
|
|
- name: 'Wireguard: Create configuration template'
|
|
|
|
copy:
|
|
|
|
dest: "{{ wgconfig_path }}"
|
2019-02-25 19:32:49 +00:00
|
|
|
src: files/wireguard.conf
|
|
|
|
mode: '0400'
|
|
|
|
when: wgconfig.stat.exists == False
|
|
|
|
become: true
|
2019-02-25 19:49:14 +00:00
|
|
|
|
|
|
|
- name: 'Wireguard: Fix configuration permissions'
|
|
|
|
file:
|
|
|
|
state: file
|
|
|
|
path: "{{ wgconfig_path }}"
|
|
|
|
mode: '0400'
|
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: 'Wireguard: Service enabled'
|
|
|
|
service:
|
|
|
|
name: 'wg-quick@wg0'
|
|
|
|
enabled: true
|
|
|
|
state: started
|
2019-03-02 12:34:23 +00:00
|
|
|
|
|
|
|
- name: 'Abert'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- albert
|
|
|
|
copy:
|
|
|
|
dest: '~/.config'
|
|
|
|
src: files/albert
|
2019-03-02 16:47:59 +00:00
|
|
|
|
|
|
|
- name: 'Gnome: Custom key bindings: Add'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- keybindings
|
|
|
|
block:
|
|
|
|
- name: 'Gnome: Custom key bindings: Set facts'
|
|
|
|
set_fact:
|
|
|
|
customkbpath: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings'
|
|
|
|
kblist: []
|
|
|
|
|
|
|
|
- name: 'Gnome: Custom key bindings: Build list'
|
|
|
|
set_fact:
|
|
|
|
kblist: "{{ kblist + [ ( customkbpath + '/custom' + index | string + '/' ) | to_json ] }}"
|
|
|
|
loop: "{{ gnome_custom_keybindings }}"
|
|
|
|
loop_control:
|
|
|
|
index_var: index
|
|
|
|
label: "{{ item.name }}"
|
|
|
|
|
|
|
|
- name: 'Gnome: Custom key bindings: Configure list'
|
|
|
|
command: "dconf write {{ customkbpath }} [{{ kblist | join(',') | quote }}]"
|
|
|
|
|
|
|
|
- include: includes/keybindings.yaml
|
|
|
|
loop: "{{ gnome_custom_keybindings }}"
|
|
|
|
loop_control:
|
|
|
|
index_var: index
|