File tree 5 files changed +47
-1
lines changed
5 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,14 @@ local:
49
49
# - git
50
50
# - gitk
51
51
# - gnome-tweaks
52
- # - keepassxc
53
52
# - nextcloud-desktop
54
53
- tig
55
54
# - vlc
56
55
# - xournal
57
56
57
+ basic_utils :
58
+ enable_keepassxc : false
59
+
58
60
git :
59
61
config :
60
62
user_name : " User"
Original file line number Diff line number Diff line change 47
47
- role : ansible-role-visual-studio-code
48
48
when : enable_visula_studio_code | default(false)
49
49
50
+ - role : basic_utils
51
+
50
52
post_tasks :
51
53
- include_tasks : tasks/ubuntu_cleanup.yml
52
54
when : enable_ubuntu_cleanup | default(false)
Original file line number Diff line number Diff line change
1
+ ---
2
+ dependencies :
3
+ - role : flatpak
Original file line number Diff line number Diff line change
1
+ - name : basic_utils print var
2
+ debug :
3
+ var : basic_utils
4
+
5
+ # region keepassxc
6
+ - name : install keepassxc flatpak
7
+ when : basic_utils.enable_keepassxc | default(false)
8
+ command : flatpak install flathub org.keepassxc.KeePassXC --assumeyes
9
+
10
+ - name : Modify Desktop file
11
+ when : basic_utils.enable_keepassxc | default(false)
12
+ become : true
13
+ lineinfile :
14
+ dest="/var/lib/flatpak/exports/share/applications/org.keepassxc.KeePassXC.desktop"
15
+ line="{{ item.line }}"
16
+ regexp="{{ item.regexp }}"
17
+ state=present
18
+ insertafter=EOF
19
+ create=True
20
+ mode="u+rw"
21
+ with_items :
22
+ - {
23
+ regexp : " ^Exec=" ,
24
+ line : " Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=keepassxc --file-forwarding org.keepassxc.KeePassXC --platform xcb @@ %f @@" ,
25
+ }
26
+ # manually to do:
27
+ # enable ssh-agent integration
28
+ # enable auto type for shortcut
29
+
30
+ # endregion
Original file line number Diff line number Diff line change
1
+ - name : install flatpak
2
+ become : true
3
+ package :
4
+ name : flatpak
5
+
6
+ - name : add flathub repository
7
+ become : true
8
+ command : |
9
+ flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
You can’t perform that action at this time.
0 commit comments