gitlab_runner: Add option to disable SELinux related tasks

This commit is contained in:
saibotk 2021-09-21 05:08:35 +02:00
parent eb5ae6a7a2
commit a169875e69
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -26,6 +26,8 @@
with_items:
- "{{ gitlabrunner_config_location }}"
- "{{ gitlabrunner_extra_paths }}"
when:
- gitlabrunner_selinux_enabled
become: true
- name: Create install directory