diff --git a/geant/gap_ansible/playbooks/iptrunks.yaml b/geant/gap_ansible/playbooks/iptrunks.yaml index cfdb45a38f400bcb984c125d040f3ba47f0af2fc..f93ca1b669e87f15b1b9c42fab16cd612017072e 100644 --- a/geant/gap_ansible/playbooks/iptrunks.yaml +++ b/geant/gap_ansible/playbooks/iptrunks.yaml @@ -1,7 +1,7 @@ - name: Manage iptrunks playbook hosts: all # remote_user: "{{ gap_ansible_user }}" - remote_user: geant-ne-na-lab + # remote_user: geant-ne-na-lab gather_facts: false roles: - Juniper.junos diff --git a/geant/gap_ansible/playbooks/iptrunks_checks.yaml b/geant/gap_ansible/playbooks/iptrunks_checks.yaml index 659245c8cfaa081d68f6cb67346cf5a97153d2c5..bc134eb7b5fc45aa2f2e6e5d8b7e9deb41682a37 100644 --- a/geant/gap_ansible/playbooks/iptrunks_checks.yaml +++ b/geant/gap_ansible/playbooks/iptrunks_checks.yaml @@ -1,7 +1,7 @@ - name: Manage iptrunks checks playbook hosts: all # remote_user: "{{ gap_ansible_user }}" - remote_user: geant-ne-na-lab + # remote_user: geant-ne-na-lab gather_facts: false roles: - Juniper.junos diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml index 89b664a1fbcc42a9fa9008145e0d54f5262040b5..975c437eed52c03bcfccc322e7fabe9419f0e6f5 100644 --- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml +++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml @@ -2,19 +2,19 @@ when: local_side.iptrunk_side_node.vendor == "juniper" block: - name: Get status of ISIS - juniper_junos_command: + junipernetworks.junos.junos_command: commands: - show isis adjacency - show isis interface "{{ local_side.iptrunk_side_ae_iface }}".0 register: response - - name: Show status of ISIS djacencies + - name: Show status of ISIS adjacencies ansible.builtin.debug: - msg: "{{ response.results[0].stdout_lines }}" + msg: "{{ response.stdout_lines[0] }}" - name: Show status of ISIS interfaces ansible.builtin.debug: - msg: "{{ response.results[1].stdout_lines }}" + msg: "{{ response.stdout_lines[1] }}" - name: Nokia ISIS check when: local_side.iptrunk_side_node.vendor == "nokia" diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml index 324ae18dc4e07fd5042355c5d3306ac7bf9f7372..7465dcd947df8a817a1fa0a82ff786cb8568a6ba 100644 --- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml +++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml @@ -2,8 +2,8 @@ when: local_side.iptrunk_side_node.vendor == "juniper" block: - name: Show LACP status - juniper_junos_command: - command: "show lacp interface {{ local_side.iptrunk_side_ae_iface }}" + junipernetworks.junos.junos_command: + commands: "show lacp interface {{ local_side.iptrunk_side_ae_iface }}" register: response - name: Print the LACP status.