Merge pull request #460 from toadjaune/fix-stat-symlink

Fix systemd stat symlink
This commit is contained in:
Michael Russell 2018-06-27 12:23:48 +02:00 committed by GitHub
commit 5889348119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@
file: file:
path: "{{ sysd_script }}" path: "{{ sysd_script }}"
state: absent state: absent
when: not sysd_stat_result.stat.islnk when: sysd_stat_result.stat.exists and not sysd_stat_result.stat.islnk
- name: Create a symbolic link to the default systemd location to the first instance running on this host - name: Create a symbolic link to the default systemd location to the first instance running on this host
become: yes become: yes
@ -106,7 +106,7 @@
state: link state: link
src: "{{ instance_sysd_script }}" src: "{{ instance_sysd_script }}"
path: "{{ sysd_script }}" path: "{{ sysd_script }}"
when: not sysd_stat_result.stat.islnk when: sysd_stat_result.stat.exists and not sysd_stat_result.stat.islnk
notify: notify:
- reload systemd configuration - reload systemd configuration
- restart elasticsearch - restart elasticsearch