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

Juniper.junos -> junipernetworks.junos

Update in module usage
parent 6349ff0a
No related branches found
No related tags found
1 merge request!106remote user should be now passed as environmental var
- name: Deploy base_config on "{{ inventory_hostname }}" [CHECK ONLY][Juniper]
juniper_junos_config:
load: 'replace'
junipernetworks.junos.junos_config:
update: 'replace'
src: "/var/tmp/ansible_run_{{ opid }}/{{ mytemplates.template_name }}.conf"
format: text
config_mode: "private"
check: true
commit: false
register: response
src_format: text
check_commit: true
diff: true
when: >
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
wfo_router.router.vendor == "juniper"
- name: Show diff for dry run
ansible.builtin.debug:
msg: "{{ response }}"
when: >
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
wfo_router.router.vendor == "juniper"
- name: Deploy base_config on "{{ inventory_hostname }}" [AND COMMIT][Juniper]
juniper_junos_config:
load: 'replace'
junipernetworks.junos.junos_config:
update: 'replace'
src: "/var/tmp/ansible_run_{{ opid }}/{{ mytemplates.template_name }}.conf"
format: text
config_mode: "private"
src_format: text
comment: "{{ commit_comment }}"
register: response
when: >
......@@ -33,13 +23,13 @@
( dry_run | ansible.builtin.bool ) is false and
wfo_router.router.vendor == "juniper"
- name: Show diff
ansible.builtin.debug:
msg: "{{ response }}"
when: >
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is false and
wfo_router.router.vendor == "juniper"
# - name: Show diff
# ansible.builtin.debug:
# msg: "{{ response }}"
# when: >
# verb == "deploy" and
# ( dry_run | ansible.builtin.bool ) is false and
# wfo_router.router.vendor == "juniper"
- name: Deploy base_config on "{{ inventory_hostname }}" [CHECK ONLY][NOKIA]
ansible.netcommon.netconf_config:
......
- name: Base config Juniper checks
juniernetworks.junos.junos_command:
commands:
- show version
- show system alarms
......@@ -20,6 +20,14 @@
when:
wfo_router.router.vendor == "juniper"
- name: Execute post-check command
- name: Execute post-check command [NOKIA]
when:
wfo_router.router.vendor == "nokia"
ansible.builtin.include_tasks: base_config_single_command.yaml
with_items: "{{ commands }}"
- name: Execute post-check command [JUNIPER]
when:
wfo_router.router.vendor == "juniper"
ansible.builtin.include_tasks: base_config_checks_juniper.yaml
# with_items: "{{ commands }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment