Skip to content
Snippets Groups Projects
Commit 9296dfd8 authored by Alexander Käb's avatar Alexander Käb
Browse files

fix: include conditions for node cert tasks

parent 56fb063b
Branches
No related tags found
No related merge requests found
......@@ -64,18 +64,17 @@
- name: Generate Node certificates
when: generate_node_certs
block:
- name: Include cert tasks (with gl-groups defined)
when: (('sidecar-ca' in groups) and ('graylog-nodes' in groups))
- name: Include cert tasks
when: (('sidecar-ca' in groups) and ('graylog-nodes' in groups)) and not 'ca-store' in groups
block:
- name: Include Node Cert tasks (with gl-groups defined)
- name: Include Node Cert tasks
ansible.builtin.include_tasks: node-certs.yml
when: >
(inventory_hostname not in groups['sidecar-ca']) and
(inventory_hostname not in groups['graylog-nodes']) and
(inventory_hostname not in groups['ca-store'])
(inventory_hostname not in groups['graylog-nodes'])
- name: Include cert tasks (without gl-groups defined)
when: not (('sidecar-ca' in groups) and ('graylog-nodes' in groups))
when: not (('sidecar-ca' in groups) and ('graylog-nodes' in groups)) and 'ca-store' in groups
block:
- name: Include Node Cert tasks (without gl-groups defined)
ansible.builtin.include_tasks: node-certs.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment