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

fix: Fix conditional statement

parent 820ce6b9
No related branches found
No related tags found
No related merge requests found
- name: Run filebeat tasks - name: Run filebeat tasks
when: (groups['sidecar-ca'] id defined | ternary(inventory_hostname not in groups['sidecar-ca'], true)) when: (groups['sidecar-ca'] is defined | ternary(inventory_hostname not in groups['sidecar-ca'], true))
block: block:
- name: Add filebeat repository (Debian | Ubuntu) - name: Add filebeat repository (Debian | Ubuntu)
become: true become: true
......
--- ---
- name: Run install tasks - name: Run install tasks
when: (groups['sidecar-ca'] id defined | ternary(inventory_hostname not in groups['sidecar-ca'], true)) when: (groups['sidecar-ca'] is defined | ternary(inventory_hostname not in groups['sidecar-ca'], true))
block: block:
- name: Temp switch to legacy crypto policy - name: Temp switch to legacy crypto policy
ansible.builtin.command: ansible.builtin.command:
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
- name: Node Certificates - name: Node Certificates
delegate_to: localhost delegate_to: localhost
when: (groups['sidecar-ca'] id defined | ternary(inventory_hostname not in groups['sidecar-ca'], true)) when: (groups['sidecar-ca'] is defined | ternary(inventory_hostname not in groups['sidecar-ca'], true))
block: block:
- name: Node Certificates | Generate private keys - name: Node Certificates | Generate private keys
community.crypto.openssl_privatekey: community.crypto.openssl_privatekey:
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
- name: Node Certificates | Copy Certificates - name: Node Certificates | Copy Certificates
become: true become: true
when: (groups['sidecar-ca'] id defined | ternary(inventory_hostname not in groups['sidecar-ca'], true)) when: (groups['sidecar-ca'] is defined | ternary(inventory_hostname not in groups['sidecar-ca'], true))
block: block:
- name: Node Certificates | Copy Node certificates - name: Node Certificates | Copy Node certificates
ansible.builtin.copy: ansible.builtin.copy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment