Failure running ansible-galaxy from the setup instructions

Hi,

When I try executing the ansible-galaxy install -r requirements.yml -p vendor/roles command from the setup instructions, I get a message like this:

downloading role 'project_deploy_module', owned by -%20src%3A%20f500
Sorry, - src: f500.project_deploy_module was not found on galaxy.ansible.com.
 downloading role '-%20name%3A%20ntp', owned by 
Sorry, - name: ntp was not found on galaxy.ansible.com.
 downloading role 'ntp', owned by src%3A%20resmo
Sorry, src: resmo.ntp was not found on galaxy.ansible.com.
 downloading role '-%20name%3A%20logrotate', owned by 
Sorry, - name: logrotate was not found on galaxy.ansible.com.
 downloading role 'logrotate', owned by src%3A%20nickhammond
Sorry, src: nickhammond.logrotate was not found on galaxy.ansible.com.
 downloading role '-%20name%3A%20php5-xdebug', owned by 
Sorry, - name: php5-xdebug was not found on galaxy.ansible.com.
 downloading role 'php5-xdebug', owned by src%3A%20MaximeThoonsen
Sorry, src: MaximeThoonsen.php5-xdebug was not found on galaxy.ansible.com.

Any help is appreciated.

Thanks,
Jason

Double-check that your Ansible version is 1.8 or higher. That’s probably it, but sometimes when I install again I have to use --force because it complains about one of the modules already being present.

2 Likes

Seems like brew doesn’t have the latest version. I used the pip method and that seemed to get the latest version and solve the problem.

Thanks,
J

Glad that solved it!
My brew gives me…

$brew info ansible
ansible: stable 1.9.0.1 (bottled), HEAD

Hmmm. Not sure why when I “brew install ansible” it installs 1.6…

-J

If ansible is already installed, try upgrade instead:
brew upgrade ansible
Fixed it for me.

Using Ubuntu, I had to update the ppa .

sudo apt-add-repository ppa:ansible/ansible