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

Create a branch for a share default ansible.cfg #18

Open
edoput opened this issue Aug 19, 2017 · 0 comments
Open

Create a branch for a share default ansible.cfg #18

edoput opened this issue Aug 19, 2017 · 0 comments

Comments

@edoput
Copy link
Member

edoput commented Aug 19, 2017

Pulling from master yields nightmares

fatal: [emmett]: FAILED! => {
    "changed": false,
    "failed": true,
    "msg": "AnsibleError: template error while templating string: no filter named 'ip_from_inventory'.
                  String:
                  lxc.include = /usr/share/lxc/config/debian.common.conf\n\nlxc.utsname = {{ vm_name }}
                  lxc.rootfs = /dev/{{ inventory_hostname }}vg/vm_{{ vm_name }}
                  lxc.tty = 4
                  lxc.arch = amd64
                  lxc.network.type = veth
                  lxc.network.flags = up
                  lxc.network.link = br0
                  lxc.network.name = eth0
                  lxc.network.ipv4 = {{ hostvars | ip_from_inventory(vm_name) }}/24
                  lxc.network.ipv4.gateway = {{ hostvars | ip_from_inventory('vm_gateway') }}
                  lxc.start.auto = {% if auto_start %}1{% else %}0{% endif %}
"}

I can't even get i to work by adjusting the filter plugin path in the configuration

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

No branches or pull requests

1 participant