Skip to content

Remove nody-greeter dotdesktop files on init #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tasks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,11 @@
deb: "/tmp/nody-greeter-{{ nody_greeter_version }}-ubuntu.deb"
state: present
when: nody_greeter_pkg.stdout.find("install ok installed " + nody_greeter_version) == -1

- name: Remove unwanted nody-greeter dotdesktop
tags: [codam.webgreeter, codam.webgreeter.init, codam.webgreeter.dotdesktop]
file:
path: "{{ item }}"
state: absent
with_items:
- /usr/share/applications/nody-greeter.desktop
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: "Include initial requirements for codam-web-greeter"
ansible.builtin.include_tasks: "init.yml"
tags: [codam.webgreeter, codam.webgreeter.init]
tags: [codam.webgreeter, codam.webgreeter.init, codam.webgreeter.dotdesktop]

- name: "Include installation process for codam-web-greeter"
ansible.builtin.include_tasks: "install.yml"
Expand Down