Skip to content

Commit 30bb5f1

Browse files
Fix idempotence
1 parent 06f41c6 commit 30bb5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/install_runner.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@
142142
state: started
143143
enabled: yes
144144
ignore_errors: "{{ ansible_check_mode }}"
145-
when: runner_version in runner_installed.stdout and runner_state|lower == "started"
145+
when: runner_state|lower == "started"
146146

147147
- name: STOP and disable Github Actions Runner service
148148
systemd:
149149
name: "{{ runner_service.content | b64decode | replace('\n', '') }}"
150150
state: stopped
151151
enabled: no
152152
ignore_errors: "{{ ansible_check_mode }}"
153-
when: runner_version in runner_installed.stdout and runner_state|lower == "stopped"
153+
when: runner_state|lower == "stopped"
154154

155155
- name: Version changed - RESTART Github Actions Runner service
156156
systemd:

0 commit comments

Comments
 (0)