remove role logic

This commit is contained in:
m0duspwnens
2022-01-26 10:26:52 -05:00
parent 8aa002b82e
commit a43fb293fc
3 changed files with 2 additions and 52 deletions

View File

@@ -1,5 +1,3 @@
{% if grains.role in ['so-helix', 'so-eval', 'so-manager', 'so-standalone', 'so-managersearch', 'so-import' ] %}
pki_private_key:
file.absent:
- name: /etc/pki/ca.key
@@ -8,15 +6,6 @@ pki_public_ca_crt:
file.absent:
- name: /etc/pki/ca.crt
{% else %}
not_a_ca:
test.succeed_without_changes:
- name: no_ca
- comment: "Not a CA, so no CA to remove."
{% endif %}
remove_ca-certificates.crt:
file.absent:
- name: /etc/ssl/certs/ca-certificates.crt