| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
ci_complete
|
|
|
| |
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allow subdirectories with import_role _from options
Add tests that tasks_from is restricted to the role
Note that a task like:
- import_role:
name: role
tasks_from: tasks/entrypoint.yml
will now load tasks from "{{ role_path }}/tasks/tasks/entrypoint.yml"
instead of "{{ role_path }}/tasks/entrypoint.yml". This change in
behavior matches include_role.
* better test case (filename doesn't match one in tasks/)
Fixes #82584
|
|
|
|
|
|
|
|
|
|
| |
* Various fixes to roles
- static property is now properly set
- role_names and other magic vars now have full list
- role public/private var loading is now done when adding to play.roles instead of on each var query
- added tests
Co-authored-by: Felix Fontein <felix@fontein.de>
|
|
|
| |
* varying verbosity was masking some first-pass test failures
|
|
|
|
|
|
|
|
| |
revert to previous behavior to push vars to play at compile time
add `public` parameter to allow per import control of exporting (vs just the global config)
Co-authored-by: tchernomax <maxime.deroucy@gmail.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(#81565)
* If all tasks in the role are skipped or unreachable, the role is not marked as complete for the host.
* Only mark the role as complete if a task in the role succeeds or fails for the host.
|
|
|
|
| |
Don't use role cache for determining whether to create a new instance of role
|
|
|
|
|
| |
fix inheriting from parents when role depth exceeds 3
Fixes #47023
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- correct 'vars:' precedence to allow phasing out of include_params
- actually merge vars and always include role_vars
- avoided dupe deps from giving wrong vars
- use 'first' instance of dep as others are from previous instances/invocations
and can have diff values for vars
- ensured deps only provide exportable vars themselves
- added COMMENTS
- added tests
- apply export restrictions setting to defaults
- use 'public' as cutoff
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
ci_complete
|
|
|
|
|
|
| |
* `context/target` tests must be in groups 1 - 2.
* `context/controller` tests must be in groups 3 - 5.
This makes it easier to efficiently organize groups and balance test runtimes.
|
|
|
| |
* Ansible will now error out if you try to use the `*_from` to load files from outside the role being loaded by `{import,include}_role`
|
|
|
|
|
| |
(#75779)
This reverts commit 440cf15aeb134e7df3969d4481dbe027358d74db.
|
|
|
|
|
|
|
|
|
| |
* Use the task dependency chain to compile the role instead of the parent role's _parents list
* keep existing role inheritance, but limit it to roles in the current task dependency chain
* Test getting role parents recursively by using the current task dependency chain
* changelog
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Only add data when there is data to add
also avoid clobbering existing data with empty file
fixes #45843
* remove redundant code, update comments
* fix mock dataloader, original does not return None
* added test
|
| |
|
|
* Corner case in which import_role would add another instance of a role with the same signature into roles: when it already existed there.
roles:
- name: a
tasks:
- import_role: name=a
would execute role 'a' 3 times instead of the intended 2 (x2 in roles: phase +1 in tasks:)
* added tests
|