GithubHelp home page GithubHelp logo

ansible-omdistro's People

Contributors

sfromm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-omdistro's Issues

Error on task ansible-omdistro | template hosts.mk

Hello - I've been unable to get this to work with either ansible 1.9 or 2.1. Is this still a functional role with these versions?

Error message in 1.9:

fatal: [ocdlog] => {'msg': "AnsibleError: file: /Users/mikerjohnson/Documents/repos/instantdx/idx-ansible/roles/ansible-omdistro/templates/hosts.mk.j2, line number: 11, error: Encountered unknown tag 'do'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.", 'failed': True}
fatal: [ocdlog] => {'msg': "AnsibleError: file: /Users/mikerjohnson/Documents/repos/instantdx/idx-ansible/roles/ansible-omdistro/templates/hosts.mk.j2, line number: 11, error: Encountered unknown tag 'do'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.", 'failed': True}

FATAL: all hosts have already failed -- aborting

Basically the same thing in 2.1.

TASK [ansible-omdistro : template hosts.mk] ************************************
fatal: [ocdlog]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleError: template error while templating string: Encountered unknown tag 'do'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.. String: # -- mode: python --\n# {{ansible_managed}}\n\nall_hosts = [\n{% if omdistro_use_inventory %}\n# ansible inventory\n{% for host in groups['all'] %}\n{% set grps = ['snmp', 'tcp'] %}\n{% for grp in group_names %}\n{% if grp in omdistro_hostgroups %}\n{% do grps.append(grp) %}\n{% endif %}\n{% endfor %}\n "{{ host }}|{{ grps|join('|') }}",\n{% endfor %}\n{% endif %}\n#\n# netmon inventory\n# check_mk can only 'discover' ipv4\n{% for host in netmon.devices %}\n "{{ host.name }}|{{ host.groups|join('|') }}",\n{% endfor %}\n]\n\n{% if not omdistro_scan_parents %}\n# parent definitions\nparents += [\n{% for host in netmon.devices %}\n{% if host['ext'] is defined and host['ext']['omdistro'] is defined and host['ext']['omdistro']['parent'] is defined %}\n{% if host['ext']['omdistro']['parent'] is string %}\n ("{{ host.ext.omdistro.parent }}", ["{{ host.name }}"]),\n{% else %}\n{% for p in host['ext']['omdistro']['parent'] %}\n ("{{ p }}", ["{{ host.name }}"]),\n{% endfor %}\n ("{{ host.ext.omdistro.parent }}", ["{{ host.name }}"]),\n{% endif %}\n{% endif %}\n{% endfor %}\n]\n{% endif %}\n"}

Thanks

"Unable to find 'Debian.yml' in expected paths."

Using the role failed for me

TASK [ansible-omdistro : include os-specific variables] ************************ task path: /home/txemi/PycharmProjects/infrastructure/ansible/ansible-new/roles.galaxy/ansible-omdistro/tasks/main.yml:2 fatal: [xenial64]: FAILED! => { "ansible_facts": {}, "changed": false, "failed": true, "invocation": { "module_args": { "_raw_params": "Debian.yml" }, "module_name": "include_vars" }, "message": "Unable to find 'Debian.yml' in expected paths." } to retry, use: --limit @/home/txemi/PycharmProjects/infrastructure/ansible/ansible-new/site.retry

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.