diff --git a/roles/home-gui/tasks/emacs.yml b/roles/home-gui/tasks/emacs.yml index 03f69f0..fa95aed 100644 --- a/roles/home-gui/tasks/emacs.yml +++ b/roles/home-gui/tasks/emacs.yml @@ -1,5 +1,5 @@ --- -- name: Detect emacs binary +- name: Detect Emacs binary stat: path: "{{ prefix }}/bin/emacs" vars: @@ -13,13 +13,13 @@ copy: src: emacs.service dest: "{{ ansible_env.HOME }}/.config/systemd/user/emacs.service" - when: ansible_system == 'Linux' and emacs_binary.stat.executable == True + when: ansible_system == 'Linux' and emacs_binary.stat.exists == True - name: Add Emacs server to autostart (FreeBSD) copy: src: '{{ ansible_env.HOME }}/.emacs.d/emacs-server.desktop' dest: '{{ ansible_env.HOME }}/.config/autostart' remote_src: yes - when: ansible_system == 'FreeBSD' and emacs_binary.stat.executable == True + when: ansible_system == 'FreeBSD' and emacs_binary.stat.exists == True - name: Start Emacs user service systemd: name: emacs.service @@ -27,10 +27,10 @@ daemon_reload: yes enabled: yes state: started - when: ansible_system == 'Linux' and emacs_binary.stat.executable == True + when: ansible_system == 'Linux' and emacs_binary.stat.exists == True - name: Create Emacs client launcher copy: src: "{{ ansible_env.HOME }}/.emacs.d/emacs-client.desktop" dest: "{{ ansible_env.HOME }}/.local/share/applications/emacs.desktop" remote_src: yes - when: emacs_binary.stat.executable == True + when: emacs_binary.stat.exists == True