Update 'tasks/main.yml' #7

Merged
jens merged 10 commits from jens-patch-2 into main 2021-09-09 10:01:49 +00:00
Showing only changes of commit fc2f3a77d7 - Show all commits

View file

@ -22,7 +22,7 @@
force: true
become: true
become_user : "{{ drone_user }}"
register: gitclone
notify: "Build drone"
Review

this doesn't really help, this always returns changed, even when running withing 1 second,
perhaps the 'forced' is doing this? But forced is needed to discard local changes...

this doesn't really help, this always returns changed, even when running withing 1 second, perhaps the 'forced' is doing this? But forced is needed to discard local changes...
Review

Forced does this, but is needed as stated, the notify here could indeed be omitted.

Forced does this, but is needed as stated, the notify here could indeed be omitted.
- name: "Setup systemd service"
template:
@ -43,7 +43,6 @@
notify: "Restart drone"
args:
chdir: "{{ drone_home }}/drone/cmd/drone-server"
when: gitclone.changed # noqa no-handler
- name: "Clone runner"
get_url: