vagrant up : No package matching 'server.packages' is available (generated by phansible)

852 views Asked by At

I am using windows and hosts file has been updated. Anybody know how to fix this?

Thanks

1

There are 1 answers

0
Dumindu Madunuwan On

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

same way you might have to fix /ansible/roles/php/tasks/main.yml

- name: Install PHP Packages
  sudo: yes
  apt: pkg={{ item }} state=latest
  with_items: "{{ php.packages }}"
  when: php.packages is defined

Other than that /ansible/vars/all.yml

php:
    install: '1'
    ppa: php
    packages: [php5-cli, php5-intl, php5-mcrypt, php5-curl, php5-mysql]

instead ppa: php5-5.6