traefik: Add option to disable SELinux related tasks

This commit is contained in:
saibotk 2021-09-21 04:59:32 +02:00
parent cc5462498a
commit 8b6d3bdb7f
Signed by: saibotk
GPG key ID: 67585F0065E261D5
4 changed files with 9 additions and 0 deletions

View file

@ -121,6 +121,9 @@ traefik_acmedumper_image_version: "v{{ traefik_acmedumper_version }}"
# The acmedumper output location # The acmedumper output location
traefik_acmedumper_location: "{{ traefik_install_location }}/certs" traefik_acmedumper_location: "{{ traefik_install_location }}/certs"
# Enable or disable selinux handling
traefik_selinux_enabled: true
# The SELinux levels for tor/traefiks folders/container # The SELinux levels for tor/traefiks folders/container
traefik_selinux_level: "{{ omit }}" traefik_selinux_level: "{{ omit }}"
traefik_tor_selinux_level: "{{ omit }}" traefik_tor_selinux_level: "{{ omit }}"

View file

@ -25,6 +25,8 @@
state: present state: present
with_items: with_items:
- "{{ traefik_acmedumper_location }}" - "{{ traefik_acmedumper_location }}"
when:
- traefik_selinux_enabled
become: true become: true
- name: Create data directory for acme-dumper - name: Create data directory for acme-dumper

View file

@ -28,6 +28,8 @@
with_items: with_items:
- "{{ traefik_acme_location }}" - "{{ traefik_acme_location }}"
- "{{ traefik_config_location }}" - "{{ traefik_config_location }}"
when:
- traefik_selinux_enabled
become: true become: true
- name: Create install directory - name: Create install directory

View file

@ -27,6 +27,8 @@
with_items: with_items:
- "{{ traefik_tor_data_location }}" - "{{ traefik_tor_data_location }}"
- "{{ traefik_tor_config_location }}" - "{{ traefik_tor_config_location }}"
when:
- traefik_selinux_enabled
become: true become: true
- name: Create install directory - name: Create install directory