Comments (7)
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the component bot command.
from ansible.
While include_role
and import_role
do accept paths, anything else like ansible-galaxy list
, ansible-doc -t role
is not going to recognize roles within roles, so I think it would be better to put them all in the normal roles path. Subroles is not an ansible concept.
That said,
collections/
└── ansible_collections
└── ns
└── col
└── roles
└── common
├── role_a
├── role_b
└── tasks
└── main.yml
could be used in a play like this:
- hosts: all
roles:
- ns.col.common
- ns.col.common.role_a
If you are trying to use collections, you'll need to update ansible to a more recent version for that to work.
The only difference for standalone roles, you'd replace .
with /
for role subdirs, e.g. common/role_a
.
from ansible.
Okay I understand but we used to do so and it worked previously to give you more context maybe that will help you to find the issue source
This is my structure
ansible_collections
└── system
├──galaxy.yml
└── roles
├── roles1
└── roles2
Each role as a task.yml file inside and this is my galaxy.yml file :
namespace: i252
name: system
version: 2.0.0
Do you know why is not working?
from ansible.
Okay I understand but we used to do so and it worked previously to give you more context maybe that will help you to find the issue source
This is my structure
ansible_collections
└── system
├──galaxy.yml
└── roles
├── roles1
└── roles2
Each role as a task.yml file inside and this is my galaxy.yml file :
namespace: i252
name: system
version: 2.0.0
Do you know why is not working?
from ansible.
Okay I understand but we used to do so and it worked previously to give you more context maybe that will help you to find the issue source
This is my structure
ansible_collections
└── system
├──galaxy.yml
└── roles
├── roles1
└── roles2
Each role as a task.yml file inside and this is my galaxy.yml file :
namespace: i252
name: system
version: 2.0.0
Do you know why is not working?
from ansible.
Can you check the comment below for more informations.
from ansible.
@ElieObadia From the information given, I think this behavior should not have changed, and you can achieve what you want through available features. I can take another look if you can share a play and filestructure (verbatim, please) that reproduces the problem and used to work. If I can reproduce the issue then I can bisect which commit introduced the change in behavior.
from ansible.
Related Issues (20)
- with_items using jinja2 no longer working after Ansible 2.16.4(and 6) upgrade. HOT 3
- `git` module: `Failed to init/update submodules: warning: could not look up configuration 'remote.origin.url'` HOT 9
- "Expecting value: line 1 column 1 (char 0)" -- JSONDecodeError("Expecting value", s, err.value) from None HOT 4
- ansilbe become user with rootsh support HOT 2
- Group var not correctly cast to integer HOT 9
- task timeout failure should indicate timeout for programatic use HOT 3
- When fatal: happens when using iteration, all results are lost even if ignore_errors is true HOT 2
- Enable Logdna callback plugin to pass in custom log ingestion url HOT 1
- template module doesn't return a backup file HOT 7
- I cannot connect to a single server from the provider hetzner when the servers are in recovery mode HOT 1
- ansible.builtin.command not passing args to useradd correctly with argv parameter HOT 2
- handlers not fired when using roles HOT 8
- become_method "ansible.builtin.sudo" is not supported HOT 3
- Displaying file information for include_tasks when using the ansible-playbook command with the --list-tasks option HOT 5
- ansible-galaxy collection updates leave old dirs behind HOT 1
- service_facts returns non-existent services HOT 5
- Can ansible produce friendly messages? HOT 4
- Unable to do systemd (ansible module) restart for the tasks with pbrun. HOT 8
- Regression error - package_facts module changes fails ansible-documentation CI HOT 7
- Sorting is not always working correct HOT 12
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 ansible.