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
No related branches found
No related tags found
No related merge requests found
...@@ -64,18 +64,17 @@ ...@@ -64,18 +64,17 @@
- name: Generate Node certificates - name: Generate Node certificates
when: generate_node_certs when: generate_node_certs
block: block:
- name: Include cert tasks (with gl-groups defined) - name: Include cert tasks
when: (('sidecar-ca' in groups) and ('graylog-nodes' in groups)) when: (('sidecar-ca' in groups) and ('graylog-nodes' in groups)) and not 'ca-store' in groups
block: block:
- name: Include Node Cert tasks (with gl-groups defined) - name: Include Node Cert tasks
ansible.builtin.include_tasks: node-certs.yml ansible.builtin.include_tasks: node-certs.yml
when: > when: >
(inventory_hostname not in groups['sidecar-ca']) and (inventory_hostname not in groups['sidecar-ca']) and
(inventory_hostname not in groups['graylog-nodes']) and (inventory_hostname not in groups['graylog-nodes'])
(inventory_hostname not in groups['ca-store'])
- name: Include cert tasks (without gl-groups defined) - 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: block:
- name: Include Node Cert tasks (without gl-groups defined) - name: Include Node Cert tasks (without gl-groups defined)
ansible.builtin.include_tasks: node-certs.yml 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