{"action":"closed","issue":{"url":"https://api.github.com/repos/Mic92/ansible-lxc/issues/4","labels_url":"https://api.github.com/repos/Mic92/ansible-lxc/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Mic92/ansible-lxc/issues/4/comments","events_url":"https://api.github.com/repos/Mic92/ansible-lxc/issues/4/events","html_url":"https://github.com/Mic92/ansible-lxc/issues/4","id":54715491,"number":4,"title":"creation of templates within vagrant chooses wrong template","user":{"login":"joaocc","id":2837860,"avatar_url":"https://avatars.githubusercontent.com/u/2837860?v=3","gravatar_id":"","url":"https://api.github.com/users/joaocc","html_url":"https://github.com/joaocc","followers_url":"https://api.github.com/users/joaocc/followers","following_url":"https://api.github.com/users/joaocc/following{/other_user}","gists_url":"https://api.github.com/users/joaocc/gists{/gist_id}","starred_url":"https://api.github.com/users/joaocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaocc/subscriptions","organizations_url":"https://api.github.com/users/joaocc/orgs","repos_url":"https://api.github.com/users/joaocc/repos","events_url":"https://api.github.com/users/joaocc/events{/privacy}","received_events_url":"https://api.github.com/users/joaocc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-18T23:56:52Z","updated_at":"2015-01-19T11:25:19Z","closed_at":"2015-01-19T11:25:19Z","body":"Hi,\r\nI have been observing a weird behavior with ansible-lxc.\r\n\r\nMy playbook creates a set of containers, starting with a template based on \"ubuntu-cloud\" / trusty.\r\n\r\nEverything runs fine when I do this in a running VM (in this case Vagrant) - LXC container is created with the right template.\r\n\r\nHowever, when I run the exact same playbook as part of vagrant.provision.shell, the template reverts back to \"ubuntu\" (the default).\r\n\r\nSome snippets.\r\n````\r\ncontainer_cloudinit_userdata: \"\"\r\nmy_containers: \r\n - name: Template-1404\r\n    template: \"ubuntu-cloud\"\r\n    template_options: --release trusty {{container_cloudinit_userdata}}\r\n````\r\n```` \r\n- name: create containers \r\n  sudo: yes\r\n  lxc-container: \r\n    name: \"{{ item.name }}\"\r\n    template: ubuntu-cloud\r\n    backing_store: \"{{item.backing_store|default('dir') }}\"\r\n    template_options: \"{{ item.template_options|default('') }}\"\r\n    state: \"stopped\"\r\n    container_log: true\r\n  with_items: my_containers\r\n\r\n```` \r\nThe host VM is \"ubuntu/trusty64\" from Vagrant.\r\n\r\nAny ideas?\r\nThx"}}