add missing become: yes

This commit is contained in:
Bill Schwanitz 2018-06-26 15:13:19 -04:00 committed by Bill Schwanitz
parent 50a8f3b144
commit cc6b4e78e2
3 changed files with 8 additions and 3 deletions

View file

@ -93,13 +93,14 @@
stat:
path: "{{ sysd_script }}"
register: sysd_stat_result
- name: Remove if it is a normal file
become: yes
file:
path: "{{ sysd_script }}"
state: absent
when: not sysd_stat_result.stat.islnk
- name: Create a symbolic link to the default systemd location to the first instance running on this host
become: yes
file: