Skip to content

Commit fdcca76

Browse files
motoreagattoimburratoLuca Capanna
authored andcommitted
[no refs]: conflicts with 'become' and 'delegate_to' methods - user can't be the same on controller and remote nodes
1 parent f11d9a2 commit fdcca76

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tasks/install_runner.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
body_format: json
2424
register: api_response
2525
run_once: yes
26-
delegate_to: localhost
26+
#delegate_to: localhost
2727
when: runner_version == "latest"
2828
tags:
2929
- install
@@ -36,18 +36,19 @@
3636
- name: Download runner package version - "{{ runner_version }}" (RUN ONCE)
3737
get_url:
3838
url: "https://github.com/actions/runner/releases/download/v{{ runner_version }}/actions-runner-linux-x64-{{ runner_version }}.tar.gz"
39-
dest: "./actions-runner-linux-{{ runner_version }}.tar.gz"
39+
dest: "{{ runner_dir }}/actions-runner-linux-{{ runner_version }}.tar.gz"
4040
force: no
4141
run_once: yes
42-
delegate_to: localhost
42+
#delegate_to: localhost
4343
tags:
4444
- install
4545

4646
- name: Unarchive package
4747
unarchive:
48-
src: "./actions-runner-linux-{{ runner_version }}.tar.gz"
48+
src: "{{ runner_dir }}/actions-runner-linux-{{ runner_version }}.tar.gz"
4949
dest: "{{ runner_dir }}/"
5050
owner: "{{ runner_user }}"
51+
remote_src: yes
5152
tags:
5253
- install
5354

0 commit comments

Comments
 (0)