Giter Site home page Giter Site logo

ansible-vyos's People

Contributors

ahaitoute avatar sherbang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-vyos's Issues

Template sample?

Could you provide a template sample?

"vyos_configurations/vyos_configuration_{{ ansible_hostname }}.j2"

Are Templars in set command format or 'show configuration' format?

Failed configuration install shows "changed" status instead of "failed"

Example:
changed: [mobius_arch] => {"changed": true, "cmd": ["/tmp/ansible-vyos/vyos_loadFile.sh", "/tmp/ansible-vyos/configuration"], "delta": "0:00:00.725509", "end": "2016-06-28 18:47:51.691483", "invocation": {"module_args": {"_raw_params": "/tmp/ansible-vyos/vyos_loadFile.sh /tmp/ansible-vyos/configuration", "_uses_shell": false, "chdir": "/tmp/ansible-vyos", "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-06-28 18:47:50.965974", "stderr": "", "stdout": "Invalid config file (syntax error): error at line 12, text [group]\nFailed to parse specified config file\nSaving configuration to '/config/config.boot'...\nDone", "stdout_lines": ["Invalid config file (syntax error): error at line 12, text [group]", "Failed to parse specified config file", "Saving configuration to '/config/config.boot'...", "Done"], "warnings": []}

Config file has a syntax error. Without verbose turned on then it looks like it installed successfully. Next time I run ansible on this host the task shows as "ok". But when I login to the router the old config is still installed.

Ansible task should fail if the config file has an error that prevents it from loading.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.