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

ansible/inventory/group_vars/all/apt_lxc.yml must be stored as a dictionary/hash #61

Closed
htgoebel opened this issue Nov 26, 2014 · 2 comments

Comments

@htgoebel
Copy link
Contributor

I get this error when running a playbook on a freshly created debops project.
This file currently contains only comments. Obviously Ansible does not like this. I'm afraid, the only way to avoid this error message is to remove the file.

mkdir /tmp/testtesttest
cd /tmp/testtesttest
debops-init
echo localhost >> ansible/inventory/hosts
cat > site.yml <<EOF

---
- gather_facts: false
  hosts: localhost
  tasks:
  - name: Check if host is in group
    command: echo "yes"
EOF
debops ./site.yml
@drybjed
Copy link
Member

drybjed commented Nov 26, 2014

Those two variables are not normally needed, and I suppose that perhaps a FAQ page in documentation with prominent link to it on the home page would better serve as a way to find solutions for common problems. And I'm in favor of not forcing a particular inventory layout either on the user. apt_lxc.yml can be removed.

@htgoebel
Copy link
Contributor Author

The new version of debops-init no longer creates this file.

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

2 participants