-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Blocks inside roles weren't added to the graph (#225)
Related to #223
- Loading branch information
Showing
8 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
- name: test | ||
hosts: localhost | ||
gather_facts: false | ||
pre_tasks: | ||
- name: Block of pre_tasks | ||
block: | ||
- name: Pre_task in a block | ||
ansible.builtin.debug: | ||
msg: msg from pre_task in a block | ||
roles: | ||
- role: blocks | ||
|
||
tasks: | ||
- name: Task with a msg | ||
ansible.builtin.debug: | ||
msg: msg from a task | ||
|
||
- name: Block of tasks | ||
block: | ||
- name: Task in a block | ||
ansible.builtin.debug: | ||
msg: msg from a task in a block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
|
||
- name: Task with a msg in a role | ||
ansible.builtin.debug: | ||
msg: Msg from a task | ||
|
||
- name: Block of tasks in a role | ||
block: | ||
- name: My task in a block in a role | ||
ansible.builtin.debug: | ||
msg: Msg from a task in a block in a role | ||
|
||
- name: Import tasks_file | ||
ansible.builtin.import_role: | ||
name: blocks | ||
tasks_from: tasks_with_block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Task with a msg from a tasks_file of a role | ||
ansible.builtin.debug: | ||
msg: msg from a task from a tasks_file of a role | ||
|
||
- name: Block in a tasks_file of a role | ||
block: | ||
- name: Task in a block in a tasks_file of a role | ||
ansible.builtin.debug: | ||
msg: "This is a msg from a task in a block in a tasks_file of a role" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters