Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set commands not applied #319

Open
ita-dips opened this issue Apr 26, 2023 · 0 comments
Open

set commands not applied #319

ita-dips opened this issue Apr 26, 2023 · 0 comments

Comments

@ita-dips
Copy link

SUMMARY

Using module vyos_config the set commands are not executed.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

module vyos_config

ANSIBLE VERSION
 config file = /var/lib/playbooks/vyos/ansible.cfg
 configured module search path = ['/var/lib/playbooks/generic/modules']
 ansible python module location = /usr/lib/python3/dist-packages/ansible
 ansible collection location = /var/lib/playbooks/ansible_galaxy/collections
 executable location = /usr/bin/ansible
 python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] (/usr/bin/python3)
 jinja version = 3.0.3
 libyaml = True

COLLECTION VERSION
vyos.vyos               4.0.2
CONFIGURATION

OS / ENVIRONMENT

Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

STEPS TO REPRODUCE

Using this task:

  • name: configure the remote device
    vyos.vyos.vyos_config:
    lines:
    - set firewall log-martians enable

the firewall configuration is not set on remote device (vyos 1.3.2). But if I manually set the configuration on device, then the vyos_config is able to modify the configuration.

ansible-playbook -k ./remore-vyos.yaml
SSH password:

PLAY [Set fw rulez] ********************************************************************************************************************

TASK [Gathering Facts] *****************************************************************************************************************
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
ok: [idc21-ar11-prod]

TASK [configure the remote device] *****************************************************************************************************
[WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the
running configuration on device
changed: [idc21-ar11-prod]

PLAY RECAP *****************************************************************************************************************************
idc21-ar11-prod            : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

EXPECTED RESULTS

Add the log-martian conf.

ACTUAL RESULTS

No martian-conf is present on remote device.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant