Skip to content
Snippets Groups Projects
Commit 9e030aad authored by ak@geant.org's avatar ak@geant.org
Browse files

Fixes: bools checks and FQCNs

parent cd17ef4d
Branches
No related tags found
2 merge requests!2Cic changes,!1Cic changes
Pipeline #84236 failed
...@@ -15,4 +15,3 @@ ...@@ -15,4 +15,3 @@
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ response }}" msg: "{{ response }}"
when: verb == "fix" and not (dry_run | ansible.builtin.bool) when: verb == "fix" and not (dry_run | ansible.builtin.bool)
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
# when: response.changed == true # when: response.changed == true
- name: Send an e-mail using Geant SMTP servers - name: Send an e-mail using Geant SMTP servers
mail: community.general.mail:
host: "{{ cic_alerts_mail_host }}" host: "{{ cic_alerts_mail_host }}"
port: "{{ cic_alerts_smtp_port }}" port: "{{ cic_alerts_smtp_port }}"
sender: "{{ cic_alerts_sender }}" sender: "{{ cic_alerts_sender }}"
...@@ -33,4 +33,4 @@ ...@@ -33,4 +33,4 @@
subject: "Config Integrity Check failed for {{ inventory_hostname }} on {{ config_object }}" subject: "Config Integrity Check failed for {{ inventory_hostname }} on {{ config_object }}"
body: "{{ lookup('ansible.builtin.template', 'mail_body.j2') }}" body: "{{ lookup('ansible.builtin.template', 'mail_body.j2') }}"
delegate_to: localhost delegate_to: localhost
when: response.changed == true and (send_email | ansible.builtin.bool) == true when: (response.changed | ansible.builtin.bool) and (send_email | ansible.builtin.bool)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment