You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
- name: Execute Juniper configuration commands.
hosts: all
#roles:
# - Juniper.junos
collections:
- juniper.device
connection: local
gather_facts: false
vars_prompt:
- name: DEVICE_PASSWORD
prompt: Device password
private: true
tasks:
- name: Run Juniper configuration commands.
config:
passwd: "{{ DEVICE_PASSWORD }}"
timeout: 120
load: set
format: set
config_mode: exclusive
comment: "Performed by Ansible Playbook simple-config.yml"
commit: true
lines:
- set snmp description "Pok B/706 GPFS Testbed for Cross Building Communications"
ignore_warning:
- "statement not found"
register: set_conf_response
- name: Print config diff
# diff and diff_lines are subfields on the Ansible response.
# The differences will only print if a change was made and
# diff is defined.
debug:
var: set_conf_response.diff_lines
when: "set_conf_response.diff is defined"
Expected results
config archive file is uploaded to remote SCP site after config commit.
Actual results
config archive file is not uploaded to remote SCP site after config commit.
The text was updated successfully, but these errors were encountered:
Issue Type
Module Name
config
juniper.device collection and Python libraries version
OS / Environment
QFX5130-32CD
Model: qfx5130-32cd
Junos: 22.2R3-S4.5-EVO
Yocto: 3.0.2
Linux Kernel: 5.2.60-yocto-standard-gc37311f
JUNOS-EVO OS 64-bit [junos-evo-install-qfx-ms-x86-64-22.2R3-S4.5-EVO]
Summary
transfer-on-commit of config archive file to remote SCP site fails when committed from Ansible playbook.
Steps to reproduce
on Device:
show system archival
configuration {
transfer-on-commit;
routing-instance mgmt_junos;
archive-sites {
"scp://[email protected]/var/tmp" password "xyz"; ## SECRET-DATA
"scp://[email protected]/var/tmp" password "xyz"; ## SECRET-DATA
}
}
yaml
Expected results
Actual results
The text was updated successfully, but these errors were encountered: