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
on initial gather_subset: all variables are populated as expected.
However after a config change is made and gather_subset is ran again to update the variables the old values persist.
# /home/arcreigh/dev/ansible/lib/python3.10/site-packages/ansible_collections
Collection Version
---------- -------
vyos.vyos 4.0.2
CONFIGURATION
CONFIG_FILE() = None
OS / ENVIRONMENT
WSL Ubuntu 22.04
vyos 1.3.2
STEPS TO REPRODUCE
Run the below playbook against a vyos device.
---
- name: Network Getting Started First Playbook Extendedconnection: ansible.netcommon.network_cligather_facts: falsehosts: alltasks:
- name: Get config for VyOS devicesvyos.vyos.vyos_facts:
gather_subset: all
- name: Display the configansible.builtin.debug:
msg: "The hostname is {{ ansible_net_hostname }} and the OS is {{ ansible_net_version }}"
- name: Update the hostnamevyos.vyos.vyos_hostname:
config:
hostname: vyos-updated
- name: Get changed config for VyOS devicesvyos.vyos.vyos_facts:
gather_subset: config
- name: Display the changed configansible.builtin.debug:
msg: "The new hostname is {{ ansible_net_hostname }} and the OS is {{ ansible_net_version }}"
EXPECTED RESULTS
Play name "Display the changed config" Should show the updated hostname from "Update the hostname"
ACTUAL RESULTS
PLAY [Network Getting Started First Playbook Extended] ********************************************************************************************************************
TASK [Get config for VyOS devices] ****************************************************************************************************************************************
ok: [10.25.3.51]
TASK [Display the config] *************************************************************************************************************************************************
ok: [10.25.3.51] => {
"msg": "The hostname is vyos and the OS is VyOS 1.3.2"
}
TASK [Update the hostname] ************************************************************************************************************************************************
changed: [10.25.3.51]
TASK [Get changed config for VyOS devices] ********************************************************************************************************************************
ok: [10.25.3.51]
TASK [Display the changed config] *****************************************************************************************************************************************
ok: [10.25.3.51] => {
"msg": "The new hostname is vyos and the OS is VyOS 1.3.2"
}
PLAY RECAP ****************************************************************************************************************************************************************
10.25.3.51 : ok=5 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
The text was updated successfully, but these errors were encountered:
SUMMARY
on initial gather_subset: all variables are populated as expected.
However after a config change is made and gather_subset is ran again to update the variables the old values persist.
ISSUE TYPE
COMPONENT NAME
vyos.vyos.vyos_facts
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
WSL Ubuntu 22.04
vyos 1.3.2
STEPS TO REPRODUCE
Run the below playbook against a vyos device.
EXPECTED RESULTS
Play name "Display the changed config" Should show the updated hostname from "Update the hostname"
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: