summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/contexts/fretlink/tasks/main.yml25
-rw-r--r--roles/git/tasks/main.yml15
-rw-r--r--roles/gnupg/tasks/main.yml26
-rw-r--r--roles/graphical/tasks/main.yml13
-rw-r--r--roles/lxde/tasks/main.yml25
-rw-r--r--roles/programming/haskell/tasks/main.yml16
-rw-r--r--roles/tools/tasks/main.yml13
7 files changed, 78 insertions, 55 deletions
diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml
index b1b163a..57d332e 100644
--- a/roles/contexts/fretlink/tasks/main.yml
+++ b/roles/contexts/fretlink/tasks/main.yml
@@ -7,12 +7,11 @@
7 - programming/haskell 7 - programming/haskell
8 - programming/nodejs 8 - programming/nodejs
9- name: Config files 9- name: Config files
10 synchronize: 10 copy:
11 recursive: yes 11 src: "config_files/{{ item }}"
12 archive: no 12 dest: "$XDG_CONFIG_HOME/{{ item }}"
13 checksum: yes 13 loop:
14 src: config_files/ 14 - "autostart/zeal.desktop"
15 dest: /$XDG_CONFIG_HOME/
16- name: Create pm2 config dir 15- name: Create pm2 config dir
17 file: 16 file:
18 path: $XDG_CONFIG_HOME/pm2 17 path: $XDG_CONFIG_HOME/pm2
@@ -20,16 +19,12 @@
20- name: workdir 19- name: workdir
21 block: 20 block:
22 - name: workdir scripts 21 - name: workdir scripts
23 synchronize: 22 copy:
24 recursive: yes
25 archive: no
26 checksum: yes
27 src: workdir/
28 dest: /$HOME/workdir/
29 - name: chmod workdir script
30 file:
31 path: $HOME/workdir/start
32 mode: 0755 23 mode: 0755
24 src: "workdir/{{ item }}"
25 dest: "$HOME/workdir/{{ item }}"
26 loop:
27 - start
33 - name: environment variables file 28 - name: environment variables file
34 block: 29 block:
35 - name: extract environment 30 - name: extract environment
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml
index 440e178..e2a5bbf 100644
--- a/roles/git/tasks/main.yml
+++ b/roles/git/tasks/main.yml
@@ -1,11 +1,14 @@
1--- 1---
2- name: Config files 2- name: Config files
3 synchronize: 3 copy:
4 recursive: yes 4 mode: preserve
5 archive: no 5 src: "config_files/{{ config_item }}"
6 checksum: yes 6 dest: "$XDG_CONFIG_HOME/{{ config_item }}"
7 src: config_files/ 7 loop:
8 dest: /$XDG_CONFIG_HOME/ 8 - tig/config
9 - git/templates_fretlink/hooks/pre-push
10 loop_control:
11 loop_var: config_item
9- name: git config file 12- name: git config file
10 template: 13 template:
11 src: config.j2 14 src: config.j2
diff --git a/roles/gnupg/tasks/main.yml b/roles/gnupg/tasks/main.yml
index 2bd1c79..183dd7d 100644
--- a/roles/gnupg/tasks/main.yml
+++ b/roles/gnupg/tasks/main.yml
@@ -1,11 +1,13 @@
1--- 1---
2- name: Config files 2- name: Config files
3 synchronize: 3 copy:
4 recursive: yes 4 src: "gnupg/{{ gnupg_config_item }}"
5 archive: no 5 dest: "$XDG_CONFIG_HOME/gnupg/{{ gnupg_config_item }}"
6 checksum: yes 6 loop:
7 src: gnupg 7 - gpg-agent.conf
8 dest: /$XDG_CONFIG_HOME/ 8 - gpg.conf
9 loop_control:
10 loop_var: gnupg_config_item
9- name: Protect directory 11- name: Protect directory
10 file: 12 file:
11 path: $XDG_CONFIG_HOME/gnupg 13 path: $XDG_CONFIG_HOME/gnupg
@@ -63,6 +65,7 @@
63 - notify add key to immae@immae.eu 65 - notify add key to immae@immae.eu
64 - send key to immae@immae.eu 66 - send key to immae@immae.eu
65 - notify add key to password store 67 - notify add key to password store
68- meta: flush_handlers
66- name: add keygrip to sshcontrol 69- name: add keygrip to sshcontrol
67 lineinfile: 70 lineinfile:
68 line: "{{ keygrip.stdout }}" 71 line: "{{ keygrip.stdout }}"
@@ -73,12 +76,13 @@
73 when: keygrip is defined and "stdout" in keygrip and keygrip.stdout != "" 76 when: keygrip is defined and "stdout" in keygrip and keygrip.stdout != ""
74 notify: 77 notify:
75 - restart gpg-agent 78 - restart gpg-agent
79- meta: flush_handlers
76- name: Override the gpg socket directory 80- name: Override the gpg socket directory
77 block: 81 block:
78 - name: Add systemd overrides 82 - name: Add systemd overrides
79 template: 83 template:
80 src: "systemd/{{ item }}.conf.j2" 84 src: "systemd/{{ systemd_item }}.conf.j2"
81 dest: "$XDG_CONFIG_HOME/systemd/user/{{ item }}.socket.d/override.conf" 85 dest: "$XDG_CONFIG_HOME/systemd/user/{{ systemd_item }}.socket.d/override.conf"
82 register: results 86 register: results
83 loop: 87 loop:
84 - dirmngr 88 - dirmngr
@@ -86,10 +90,14 @@
86 - gpg-agent-browser 90 - gpg-agent-browser
87 - gpg-agent-extra 91 - gpg-agent-extra
88 - gpg-agent-ssh 92 - gpg-agent-ssh
93 loop_control:
94 loop_var: systemd_item
89 - name: Restart systemd units 95 - name: Restart systemd units
90 systemd: 96 systemd:
91 daemon_reload: true 97 daemon_reload: true
92 scope: user 98 scope: user
93 state: restarted 99 state: restarted
94 name: "{{ item }}.socket" 100 name: "{{ restart_systemd_item }}.socket"
95 loop: "{{ results.results|selectattr('changed')|map(attribute='item')|list }}" 101 loop: "{{ results.results|selectattr('changed')|map(attribute='item')|list }}"
102 loop_control:
103 loop_var: restart_systemd_item
diff --git a/roles/graphical/tasks/main.yml b/roles/graphical/tasks/main.yml
index 96c70b9..ad45024 100644
--- a/roles/graphical/tasks/main.yml
+++ b/roles/graphical/tasks/main.yml
@@ -1,11 +1,12 @@
1--- 1---
2- name: Config files 2- name: Config files
3 synchronize: 3 copy:
4 recursive: yes 4 src: "config_files/{{ item }}"
5 archive: no 5 dest: "$XDG_CONFIG_HOME/{{ item }}"
6 checksum: yes 6 loop:
7 src: config_files/ 7 - redshift.conf
8 dest: /$XDG_CONFIG_HOME/ 8 - autostart/redshift-gtk.desktop
9 - dunst/dunstrc
9- name: mimeapps file 10- name: mimeapps file
10 copy: 11 copy:
11 src: mimeapps.list 12 src: mimeapps.list
diff --git a/roles/lxde/tasks/main.yml b/roles/lxde/tasks/main.yml
index b48b5e5..1660787 100644
--- a/roles/lxde/tasks/main.yml
+++ b/roles/lxde/tasks/main.yml
@@ -3,9 +3,22 @@
3 include_role: 3 include_role:
4 name: graphical 4 name: graphical
5- name: Config files 5- name: Config files
6 synchronize: 6 copy:
7 recursive: yes 7 mode: preserve
8 archive: no 8 src: "config_files/{{ lxde_config_item }}"
9 checksum: yes 9 dest: "$XDG_CONFIG_HOME/{{ lxde_config_item }}"
10 src: config_files/ 10 loop:
11 dest: /$XDG_CONFIG_HOME/ 11 - libfm/libfm.conf
12 - pcmanfm/LXDE/desktop-items-0.conf
13 - pcmanfm/LXDE/pcmanfm.conf
14 - lxterminal/lxterminal.conf
15 - openbox/lxde-rc.xml
16 - lxpanel/LXDE/panels/panel
17 - lxpanel/LXDE/config
18 - lxpanel/launchtaskbar.cfg
19 - lxsession-default-apps/settings.conf
20 - lxsession/LXDE/autostart
21 - lxsession/LXDE/desktop.conf
22 - xinitrc
23 loop_control:
24 loop_var: lxde_config_item
diff --git a/roles/programming/haskell/tasks/main.yml b/roles/programming/haskell/tasks/main.yml
index cd6654b..fe37787 100644
--- a/roles/programming/haskell/tasks/main.yml
+++ b/roles/programming/haskell/tasks/main.yml
@@ -4,10 +4,12 @@
4 src: ghci.conf 4 src: ghci.conf
5 dest: $HOME/.ghc/ 5 dest: $HOME/.ghc/
6- name: Stack config files 6- name: Stack config files
7 synchronize: 7 copy:
8 recursive: yes 8 src: "stack/{{ stack_item }}"
9 archive: no 9 dest: "$XDG_DATA_HOME/stack/{{ stack_item }}"
10 checksum: yes 10 loop:
11 src: stack/ 11 - config.yaml
12 dest: /$XDG_DATA_HOME/stack/ 12 - global-project/README.txt
13 13 - global-project/stack.yaml
14 loop_control:
15 loop_var: stack_item
diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml
index 745a08f..9d23619 100644
--- a/roles/tools/tasks/main.yml
+++ b/roles/tools/tasks/main.yml
@@ -25,6 +25,7 @@
25 dest: $XDG_CONFIG_HOME/vim/vimrc 25 dest: $XDG_CONFIG_HOME/vim/vimrc
26 notify: 26 notify:
27 - run PlugInstall 27 - run PlugInstall
28- meta: flush_handlers
28- name: tmux config file 29- name: tmux config file
29 template: 30 template:
30 src: tmux.conf.j2 31 src: tmux.conf.j2
@@ -34,18 +35,18 @@
34 src: youtube-viewer.conf.j2 35 src: youtube-viewer.conf.j2
35 dest: $XDG_CONFIG_HOME/youtube-viewer/youtube-viewer.conf 36 dest: $XDG_CONFIG_HOME/youtube-viewer/youtube-viewer.conf
36- name: remind config file 37- name: remind config file
37 synchronize: 38 copy:
38 recursive: yes 39 src: "remind/commands/{{ item }}"
39 archive: no 40 dest: "$XDG_CONFIG_HOME/remind/{{ item }}"
40 checksum: yes 41 loop:
41 src: remind/commands/ 42 - work
42 dest: /$XDG_CONFIG_HOME/remind/
43- name: remind service file 43- name: remind service file
44 copy: 44 copy:
45 src: remind/remind@.service 45 src: remind/remind@.service
46 dest: $XDG_CONFIG_HOME/systemd/user/ 46 dest: $XDG_CONFIG_HOME/systemd/user/
47 notify: 47 notify:
48 - reload systemd 48 - reload systemd
49- meta: flush_handlers
49- name: Clone password store 50- name: Clone password store
50 git: 51 git:
51 dest: "$XDG_DATA_HOME/pass" 52 dest: "$XDG_DATA_HOME/pass"