phansible
phansible copied to clipboard
vagrant up : No package matching 'server.packages' is available
- I used http://phansible.com/ to generate https://file.io/v3TnEr
- when run vagrant up it gives "No package matching 'server.packages' is available" (log : https://pastebin.mozilla.org/8954010)
- non of packages I've selected has been installed.
I am using windows and hosts file has been updated. Anything has to be changed?
generated file: /ansible/roles/server/tasks/main.yml
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: server.packages
when: server.packages is defined
should have to be
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: "{{ server.packages }}"
when: server.packages is defined
This is a duplicate of #274
@dumindu you can fix this by replacing the following line in ansible/roles/server/tasks/main.yml
...
Before...
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: server.packages <=== Replace this line...
when: server.packages is defined
After...
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: "{{ server.packages }}" <=== ... with this line
when: server.packages is defined
I've tried to find "server.packages" in the repo, so that I can submit a PR, but can't find it. Can anyone shed some light?
Thank you all for the thread. I'm a bit away from the project lately but I want to make the project active again.
@toby-griffiths, did you also check the roles under? https://github.com/phansible If I can correctly remember this is where the roles come from.
Hi @InFog,
Ah… I don't think I did. I'm a bit snowed under this week, but I'll try to find time next week to take a look.
T
Toby Griffiths Cubic Mushroom m: 07533 777371 e: [email protected] | skype: toby_griffiths | tw: @cubicmushroom https://twitter.com/#%21/cubicmushroom w: http://cubicmushroom.co.uk
On 14 May 2017 at 19:16, Evaldo Junior [email protected] wrote:
Thank you all for the thread. I'm a bit away from the project lately but I want to make the project active again.
@toby-griffiths https://github.com/toby-griffiths, did you also check the roles under? https://github.com/phansible If I can correctly remember this is where the roles come from.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phansible/phansible/issues/292#issuecomment-301330040, or mute the thread https://github.com/notifications/unsubscribe-auth/AEmAbwmpLG9mcX2YA48D1YZuUB8pEyegks5r50UYgaJpZM4LTUo7 .
--
Cubic Mushroom Ltd. is a company registered in England and Wales. Registered number: 7891099. Registered office: Unit G9 Castle Cavendish Business Centre, Dorking Road, Nottingham NG7 5PN. VAT Registration Number: GB 199 6865 21
@toby-griffiths sorry for the very late reply. The issue is caused by me pretending to be smart and ansible trying to be as safe as possible.
Phansible generated vars wipe entirely the default one belonging to the roles instead of merging with them. It's an intended behaviour so I will need to move the default vars to be in the snake case format instead of the dotted one or use the combine filter when processing them. It will all come as part of the next development iteration.