88 lines
2 KiB
YAML
88 lines
2 KiB
YAML
- name: 'Config: Checkout some repositories for local config'
|
|
tags:
|
|
- config
|
|
- repos
|
|
git:
|
|
repo: "{{ item.repo }}"
|
|
dest: "{{ item.dest }}"
|
|
loop: "{{ config_repos }}"
|
|
|
|
- name: 'Conky: Configuration'
|
|
tags:
|
|
- config
|
|
- conky
|
|
template:
|
|
src: 'templates/conkyrc.j2'
|
|
dest: '~/.conkyrc'
|
|
mode: '0400'
|
|
|
|
- name: 'Wireguard'
|
|
tags:
|
|
- config
|
|
- wireguard
|
|
block:
|
|
- set_fact:
|
|
wgconfig_path: /etc/wireguard/wg0.conf
|
|
|
|
- name: 'Wireguard: Check for existing configuration'
|
|
stat:
|
|
path: "{{ wgconfig_path }}"
|
|
register: wgconfig
|
|
|
|
- name: 'Wireguard: Create configuration template'
|
|
copy:
|
|
dest: "{{ wgconfig_path }}"
|
|
src: files/wireguard.conf
|
|
mode: '0400'
|
|
when: wgconfig.stat.exists == False
|
|
become: true
|
|
|
|
- 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
|
|
|
|
- name: 'Abert'
|
|
tags:
|
|
- config
|
|
- albert
|
|
copy:
|
|
dest: '~/.config'
|
|
src: files/albert
|
|
|
|
- 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
|