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

fixing linting

parent 563e90a3
Branches
Tags
2 merge requests!2Cic changes,!1Cic changes
Pipeline #84229 failed
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
- name: Show diff of "{{ config_object }}" - name: Show diff of "{{ config_object }}"
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)
...@@ -56,4 +56,3 @@ ...@@ -56,4 +56,3 @@
- name: Include the test tasks if specified - name: Include the test tasks if specified
include_tasks: fix_template.yaml include_tasks: fix_template.yaml
when: verb == "fix" when: verb == "fix"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
register: response register: response
when: verb == "test" and dry_run | ansible.builtin.bool when: verb == "test" and dry_run | ansible.builtin.bool
### This task never fails. It only shows differences if ther are any ### This task never fails. It only shows differences if ther are any
### but commit-check in the previous task should succeed ### but commit-check in the previous task should succeed
- name: Show DRY diff of "{{ config_object }}" - name: Show DRY diff of "{{ config_object }}"
ansible.builtin.debug: ansible.builtin.debug:
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# - name: Fail if there are diffs # - name: Fail if there are diffs
# ansible.builtin.fail: # ansible.builtin.fail:
# msg: "Running configuration is not the same as the intended" # msg: "Running configuration is not the same as the intended"
# 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: mail:
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
port: "{{ cic_alerts_smtp_port }}" port: "{{ cic_alerts_smtp_port }}"
sender: "{{ cic_alerts_sender }}" sender: "{{ cic_alerts_sender }}"
to: "{{ cic_alerts_recipient }}" to: "{{ cic_alerts_recipient }}"
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 == true and (send_email | ansible.builtin.bool) == true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment