Browse Source

merge with old roles

master
parent
commit
b9a7fdb9d7
5 changed files with 58 additions and 1 deletions
  1. +2
    -0
      files/dconf-lock/profile/user
  2. +40
    -0
      tasks/dconf-lock.yaml
  3. +1
    -0
      templates/dconf-lock/locks.j2
  4. +6
    -0
      templates/dconf-lock/settings.j2
  5. +9
    -1
      vars/main.yaml

+ 2
- 0
files/dconf-lock/profile/user View File

@@ -0,0 +1,2 @@
user-db:user
system-db:local

+ 40
- 0
tasks/dconf-lock.yaml View File

@@ -0,0 +1,40 @@
---

- name: install required debian packages
apt:
pkg:
- dconf-cli

- name: dconf profile directory
file:
path: /etc/dconf/profile
state: directory

- name: dconf profile dbs setting
copy:
src: dconf-lock/profile/user
dest: /etc/dconf/profile/user
notify: dconf update


- name: dconf local db directory
file:
path: /etc/dconf/db/local.d/
state: directory

- name: dconf settings
template:
src: settings.j2
dest: /etc/dconf/db/local.d/{{dconf_lock_id}}
notify: dconf update

- name: dconf locks directory
file:
path: /etc/dconf/db/local.d/locks
state: directory

- name: dconf locks
template:
src: locks.j2
dest: /etc/dconf/db/local.d/locks/{{dconf_lock_id}}
notify: dconf update

+ 1
- 0
templates/dconf-lock/locks.j2 View File

@@ -0,0 +1 @@
{{ dconf_lock_paths | join("\n") }}

+ 6
- 0
templates/dconf-lock/settings.j2 View File

@@ -0,0 +1,6 @@
{% for path in dconf_lock_settings %}
[{{path[1:]}}]
{% for key in dconf_lock_settings[path] %}
{{key}}={{dconf_lock_settings[path][key]}}
{% endfor %}
{% endfor %}

+ 9
- 1
vars/main.yaml View File

@@ -38,7 +38,7 @@ desktop_packages:
# fonts
- fonts-font-awesome

# graphic
# graphics
- gimp
- gimp-help-de
- inkscape
@@ -110,6 +110,8 @@ desktop_packages:
- xkbset
- numlockx
- unclutter
- x11-utils
- feh

# web
- firefox-esr
@@ -121,6 +123,12 @@ desktop_packages:
# xfce
- xfce4

# i3
- i3-wm
- i3blocks
- i3status
- i3pystatus

# themes
- dmz-cursor-theme
- gnome-brave-icon-theme