mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
ensure /etc/yum.repos.d/securityonion.repo is absent if not a manager and managerupdates is enabled
This commit is contained in:
@@ -53,6 +53,12 @@ remove_securityonionrepocache:
|
|||||||
- name: /etc/yum.repos.d/securityonioncache.repo
|
- name: /etc/yum.repos.d/securityonioncache.repo
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if role not in ['eval', 'standalone', 'import', 'manager', 'managersearch'] and managerupdates == 1 %}
|
||||||
|
remove_securityonionrepo:
|
||||||
|
file.absent:
|
||||||
|
- name: /etc/yum.repos.d/securityonion.repo
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
crsecurityonionrepo:
|
crsecurityonionrepo:
|
||||||
file.managed:
|
file.managed:
|
||||||
{% if role in ['eval', 'standalone', 'import', 'manager', 'managersearch'] or managerupdates == 0 %}
|
{% if role in ['eval', 'standalone', 'import', 'manager', 'managersearch'] or managerupdates == 0 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user