Move files and handlers to corresponding role.

This commit is contained in:
Andreas B. Mundt 2023-07-24 07:39:55 +02:00
parent 08d1bccace
commit 244a1cad2e
5 changed files with 11 additions and 13 deletions

View file

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Directory
Name=FvS
Icon=face-smile-big
#X-KDE-BaseGroup=info

View file

@ -0,0 +1,12 @@
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Applications</Name>
<Menu>
<Name>FvS</Name>
<Directory>fvs.directory</Directory>
<Include>
<Category>fvs</Category>
</Include>
</Menu>
</Menu>

View file

@ -1,9 +1,9 @@
- name: reload libvirtd
- name: Reload libvirtd
systemd:
name: libvirtd.service
listen: reload libvirtd
- name: enable vmimage-torrent service
- name: Enable vmimage-torrent service
systemd:
name: vmimage-torrent.service
state: restarted
@ -11,3 +11,9 @@
enabled: true
listen: "enable vmimage-torrent.service"
- name: Run update-desktop-database
command: update-desktop-database "{ item }"
loop:
- /usr/local/share/applications
- /usr/local/share/desktop-directories
- /etc/xdg/menus/applications-merged

View file

@ -144,19 +144,19 @@
loop:
- /usr/local/share/applications
- /usr/local/share/desktop-directories
notify: update-desktop-database
notify: Run update-desktop-database
- name: Copy fvs.directory
ansible.builtin.copy:
src: fvs.directory
dest: /usr/local/share/desktop-directories/
notify: update-desktop-database
notify: Run update-desktop-database
- name: Copy fvs.menu
ansible.builtin.copy:
src: fvs.menu
dest: /etc/xdg/menus/applications-merged/
notify: update-desktop-database
notify: Run update-desktop-database
- name: sync .torrent, .xml and .desktop files and run update-desktop-database
command: sync-vm.sh -t