@@ -34,7 +34,9 @@ gitlab_runner__apt_repo: 'deb https://packages.gitlab.com/runner/gitlab-ci-multi
3434# .. envvar:: gitlab_runner__base_packages [[[
3535#
3636# List of APT packages which will be installed by the role.
37- gitlab_runner__base_packages : [ 'gitlab-ci-multi-runner' ]
37+ gitlab_runner__base_packages :
38+ - ' gitlab-ci-multi-runner'
39+ - ' {{ "vagrant-lxc" if gitlab_runner__vagrant_lxc|bool else [] }}'
3840
3941 # ]]]
4042# .. envvar:: gitlab_runner__packages [[[
@@ -304,6 +306,26 @@ gitlab_runner__group_custom_files: []
304306gitlab_runner__host_custom_files : []
305307 # ]]]
306308 # ]]]
309+ # Shell executor configuration [[[
310+ # --------------------------------
311+
312+ # These variables control what features are configured on the GitLab Runner
313+ # host to use by the shell executor.
314+
315+ # .. envvar:: gitlab_runner__vagrant_lxc [[[
316+ #
317+ # Enable or disable support for Vagrant LXC plugin (configuration of this
318+ # support also implies installation of :command:`vagrant` on the GitLab Runner
319+ # host). Enabling Vagrant LXC will give limited :command:`sudo` access for the
320+ # GitLab Runner UNIX account to allow access to LXC commands.
321+ gitlab_runner__vagrant_lxc : ' {{ True
322+ if (ansible_local|d() and ansible_local.lxc|d() and
323+ (ansible_local.lxc.installed|d())|bool and
324+ (ansible_distribution_release not in
325+ [ "wheezy", "jessie", "precise", "trusty" ]))
326+ else False }}'
327+ # ]]]
328+ # ]]]
307329# SSH key and host management [[[
308330# -------------------------------
309331
0 commit comments