You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- '{{ ansible_local.gitlab_runner.instance_tokens if (ansible_local|d() and ansible_local.gitlab_runner|d() and ansible_local.gitlab_runner.instance_tokens|d()) else [] }}'
134
135
when: (gitlab_runner__register_api.status|d() and gitlab_runner__register_api.status == 200 and
135
-
item.0.name|d() and item.1.name|d() and item.0.name == item.1.name and
136
+
gitlab_runner__api_token and item.0.name|d() and item.1.name|d() and item.0.name == item.1.name and
136
137
(item.0.state|d() and item.0.state == 'absent'))
137
138
failed_when: False
139
+
no_log: True
138
140
139
141
- name: Get the SSH key from the remote host
140
142
slurp:
@@ -186,6 +188,15 @@
186
188
when: gitlab_runner__ssh_known_hosts and item is defined and item.rc > 0
187
189
failed_when: False
188
190
191
+
- name: Configure Vagrant LXC sudo access
192
+
template:
193
+
src: 'etc/sudoers.d/gitlab-runner-vagrant-lxc.j2'
194
+
dest: '/etc/sudoers.d/gitlab-runner-vagrant-lxc'
195
+
owner: 'root'
196
+
group: 'root'
197
+
mode: '0440'
198
+
when: gitlab_runner__vagrant_lxc|bool
199
+
189
200
- name: Make sure that Ansible fact directory exists
0 commit comments