File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
file :
4
4
path : " {{ runner_dir }}"
5
5
state : directory
6
- mode : " 0755"
6
+ mode : 0755
7
7
owner : " {{ runner_user }}"
8
- group : " {{ runner_user }}"
9
- recurse : yes
8
+ # group: "{{ runner_user }}"
10
9
tags :
11
10
- install
12
11
Original file line number Diff line number Diff line change 4
4
name : " {{ runner_service }}"
5
5
state : stopped
6
6
enabled : no
7
- when : runner_service in services
7
+ when : runner_service in services and ( reinstall_runner or runner_state == "stopped" or runner_state == "absent" )
8
8
tags :
9
9
- uninstall
10
10
43
43
become : yes
44
44
become_user : " {{ runner_user }}"
45
45
no_log : " {{ hide_sensitive_logs | bool }}"
46
- when : ansible_hostname in registered_runners.json.runners|map(attribute='name')|list and runner_file.stat.exists
46
+ when : runner_name in registered_runners.json.runners|map(attribute='name')|list and runner_file.stat.exists
47
47
tags :
48
48
- uninstall
49
49
You can’t perform that action at this time.
0 commit comments