Skip to content
Snippets Groups Projects
Commit 7f81d7c2 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

iptrunk role: diff everywhere

parent b17bf4aa
No related branches found
No related tags found
1 merge request!116Cleanup
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
src: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf" src: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
src_format: text src_format: text
comment: "{{ commit_comment }}" comment: "{{ commit_comment }}"
diff: true
when: > when: >
verb == "deploy" and verb == "deploy" and
local_side.iptrunk_side_node.vendor == "juniper" and local_side.iptrunk_side_node.vendor == "juniper" and
...@@ -49,7 +50,7 @@ ...@@ -49,7 +50,7 @@
default_operation: merge default_operation: merge
content: "{{ lookup('ansible.builtin.template', '{{ local_side.iptrunk_side_node.vendor }}/{{ config_object }}.j2') }}" content: "{{ lookup('ansible.builtin.template', '{{ local_side.iptrunk_side_node.vendor }}/{{ config_object }}.j2') }}"
commit: true commit: true
# diff: true diff: true
check_mode: false check_mode: false
when: > when: >
verb == "deploy" and verb == "deploy" and
......
...@@ -24,4 +24,5 @@ ...@@ -24,4 +24,5 @@
src: "/var/tmp/ansible_run_{{ opid }}/isis_interface.conf" src: "/var/tmp/ansible_run_{{ opid }}/isis_interface.conf"
src_format: text src_format: text
comment: "{{ commit_comment }}" comment: "{{ commit_comment }}"
diff: true
when: verb == "modify" and not (dry_run | ansible.builtin.bool) and (modify_metric | ansible.builtin.bool) when: verb == "modify" and not (dry_run | ansible.builtin.bool) and (modify_metric | ansible.builtin.bool)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment