gitlab_runner: Add option to disable SELinux related tasks
This commit is contained in:
parent
eb5ae6a7a2
commit
a169875e69
2 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,9 @@ gitlabrunner_image_variant: "alpine-{{ gitlabrunner_image_version }}"
|
|||
# Extra paths that should be created (eg. to be mounted in the container)
|
||||
gitlabrunner_extra_paths: []
|
||||
|
||||
# Enable or disable selinux handling
|
||||
gitlabrunner_selinux_enabled: true
|
||||
|
||||
# Should the docker socket be mounted to the gitlab runner (usually needed for the docker executor)
|
||||
gitlabrunner_mount_docker_socket: false
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
with_items:
|
||||
- "{{ gitlabrunner_config_location }}"
|
||||
- "{{ gitlabrunner_extra_paths }}"
|
||||
when:
|
||||
- gitlabrunner_selinux_enabled
|
||||
become: true
|
||||
|
||||
- name: Create install directory
|
||||
|
|
Loading…
Add table
Reference in a new issue