traefik: Add option to disable SELinux related tasks
This commit is contained in:
parent
cc5462498a
commit
8b6d3bdb7f
4 changed files with 9 additions and 0 deletions
|
@ -121,6 +121,9 @@ traefik_acmedumper_image_version: "v{{ traefik_acmedumper_version }}"
|
|||
# The acmedumper output location
|
||||
traefik_acmedumper_location: "{{ traefik_install_location }}/certs"
|
||||
|
||||
# Enable or disable selinux handling
|
||||
traefik_selinux_enabled: true
|
||||
|
||||
# The SELinux levels for tor/traefiks folders/container
|
||||
traefik_selinux_level: "{{ omit }}"
|
||||
traefik_tor_selinux_level: "{{ omit }}"
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
state: present
|
||||
with_items:
|
||||
- "{{ traefik_acmedumper_location }}"
|
||||
when:
|
||||
- traefik_selinux_enabled
|
||||
become: true
|
||||
|
||||
- name: Create data directory for acme-dumper
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
with_items:
|
||||
- "{{ traefik_acme_location }}"
|
||||
- "{{ traefik_config_location }}"
|
||||
when:
|
||||
- traefik_selinux_enabled
|
||||
become: true
|
||||
|
||||
- name: Create install directory
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
with_items:
|
||||
- "{{ traefik_tor_data_location }}"
|
||||
- "{{ traefik_tor_config_location }}"
|
||||
when:
|
||||
- traefik_selinux_enabled
|
||||
become: true
|
||||
|
||||
- name: Create install directory
|
||||
|
|
Loading…
Add table
Reference in a new issue