Comments (9)
From @mpetruzelli on April 14, 2017 14:42
Additional info:
It seems if the name of the repo and the name of the playbook match at all, the playbook name is blanked.
Example:
Repo Name: consul
Playbook Name: deploy_consul.yml
requirements.yml:
- src: https://github.com/consul
scm: git
Repo Structure:
- meta/
- vars/
- templates/
- deploy_consul.yml
Expected behavior of ansible-galaxy install -r requirements.yml --ignore-errors --roles-path roles --force
:
- meta/
- vars/
- templates/
- deploy_consul.yml
ACTUAL behavior of ansible-galaxy install -r requirements.yml --ignore-errors --roles-path roles --force
:
- meta/
- vars/
- templates/
- deploy_.yml
from galaxy.
Can you share an actual requirements.yml
file, please. Neither example contains a URL pointing to a real GitHub repo. Having an example to use for testing would be helpful.
Is the issue that you're attempting to place a playbook in the top level directory of the repo, and it's not being installed correctly?
from galaxy.
From @mpetruzelli on April 20, 2017 23:53
Note: This is only affected in Ansible 2.3.0
Take a look here:
https://github.com/mpetruzelli/galaxy_test
requirements.yml file provided, and install command as well.
from galaxy.
From @neliseev on April 26, 2017 14:42
+1 ansible 2.3.0.0
if any file inside role contain role name, ansible remove it.
In 2.2 all works well...
from galaxy.
From @rsperl on April 28, 2017 12:25
I opened a ticket with rhel thinking this was a tower issue before realizing it was just ansible-galaxy. Repos to duplicate the error: https://github.com/rsperl/RHEL-01839740-playbook
from galaxy.
From @kblcuk on May 5, 2017 11:37
FYI at least in my case this manifests only if I use github repo as src
:
- src: https://github.com/Stouts/Stouts.collectd
name: collectd
$ ansible-galaxy install --role-file=ansible-dependencies.yml --force
- extracting collectd to /Users/alex/Code/operations/ansible/community_roles/collectd
- collectd was installed successfully
$ l ansible/community_roles/collectd/tasks
total 48
drwxr-xr-x 8 alex staff 272B May 5 14:35 .
drwxr-xr-x 15 alex staff 510B May 5 14:35 ..
-rw-rw-r-- 1 alex staff 664B Nov 25 12:26 .yml
-rw-rw-r-- 1 alex staff 616B Nov 25 12:26 config
However, pointing to tar archive directly seems to correctly:
- src: https://github.com/Stouts/Stouts.collectd/archive/2.2.2.tar.gz
name: collectd
- downloading role from https://github.com/Stouts/Stouts.collectd/archive/2.2.2.tar.gz
- extracting collectd to /Users/alex/Code/operations/ansible/community_roles/collectd
- collectd was installed successfully
$ l ansible/community_roles/collectd/tasks
total 48
drwxr-xr-x 8 alex staff 272B May 5 14:34 .
drwxr-xr-x 15 alex staff 510B May 5 14:34 ..
-rw-rw-r-- 1 alex staff 664B Nov 25 12:26 collectd.yml
from galaxy.
From @supercoffee on May 10, 2017 3:1
I'm also seeing this. In my case, templates are being renamed in roles that are pulled in by ansible galaxy. Version 2.2.1.0 works fine, 2.3.0.0 completely breaks playbooks.
from galaxy.
From @supercoffee on May 10, 2017 3:19
Okay, there's already been a PR for this here. It's in devel already.
from galaxy.
From @rixx on June 15, 2017 13:33
I have run into the same issue – the PR has now been merged; in which ansible version is it expected?
from galaxy.
Related Issues (20)
- namespace: slingnode
- Collection seems to be published (HTTP Code: 400, Message: Artifact already exists Code: invalid), but not accessible in the UI or via 'collection install' HOT 6
- nofusscomputing namespace HOT 3
- namespace: redhatci HOT 2
- namespace: Opsmill HOT 3
- namespace: blinklabs HOT 4
- Publishing collection with certain version returns a 500 error
- Unable to import roles to pokerops collection HOT 1
- namespace: nahsilabs HOT 1
- Galaxy NG: Role Import into organizational namespace fails with `ERROR! None (HTTP Code: 403, Message: Forbidden)` HOT 1
- Do not sort galaxy_tags on roles in galaxy.ansible.com/ui
- platforms api endpoint returns 404 not found HOT 2
- namespace: fluencelabs HOT 2
- Please add EMCL-Research-ITSecLab namespace HOT 1
- namespace: twiddlez HOT 3
- namespace: ateme HOT 1
- Request for an "entrust" galaxy namespace. HOT 1
- Unable to import roles anymore: namespace different from github organization HOT 3
- namespace: stewartfrancis HOT 2
- Cannot import role HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galaxy.