From 7f81d7c28ef30bd57663f3a79573e978e1e7df3f Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342.local> Date: Thu, 14 Mar 2024 16:32:44 +0000 Subject: [PATCH] iptrunk role: diff everywhere --- geant/gap_ansible/roles/iptrunk/tasks/deploy_object.yaml | 3 ++- geant/gap_ansible/roles/iptrunk/tasks/modify_trunk.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/geant/gap_ansible/roles/iptrunk/tasks/deploy_object.yaml b/geant/gap_ansible/roles/iptrunk/tasks/deploy_object.yaml index cfa6c675..56de21a7 100644 --- a/geant/gap_ansible/roles/iptrunk/tasks/deploy_object.yaml +++ b/geant/gap_ansible/roles/iptrunk/tasks/deploy_object.yaml @@ -17,6 +17,7 @@ src: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf" src_format: text comment: "{{ commit_comment }}" + diff: true when: > verb == "deploy" and local_side.iptrunk_side_node.vendor == "juniper" and @@ -49,7 +50,7 @@ default_operation: merge content: "{{ lookup('ansible.builtin.template', '{{ local_side.iptrunk_side_node.vendor }}/{{ config_object }}.j2') }}" commit: true - # diff: true + diff: true check_mode: false when: > verb == "deploy" and diff --git a/geant/gap_ansible/roles/iptrunk/tasks/modify_trunk.yaml b/geant/gap_ansible/roles/iptrunk/tasks/modify_trunk.yaml index 584e8ca9..f99b0df4 100644 --- a/geant/gap_ansible/roles/iptrunk/tasks/modify_trunk.yaml +++ b/geant/gap_ansible/roles/iptrunk/tasks/modify_trunk.yaml @@ -24,4 +24,5 @@ src: "/var/tmp/ansible_run_{{ opid }}/isis_interface.conf" src_format: text comment: "{{ commit_comment }}" + diff: true when: verb == "modify" and not (dry_run | ansible.builtin.bool) and (modify_metric | ansible.builtin.bool) -- GitLab