Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the suggestion to be coherent #98

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,11 @@ Examples:: In a role with one `tasks/main.yml` task file, including `tasks/sub.y
.A prefixed task in a sub-tasks file
[source,yaml]
----
- name: sub | some task description
- name: sub | Some task description
mytask: [...]
----
+
The log output will then look something like `TASK [myrole : sub | some task description] ****`, which makes it very clear where the task is coming from.
The log output will then look something like `TASK [myrole : sub | Some task description] ****`, which makes it very clear where the task is coming from.
+
TIP: with a verbosity of 2 or more, ansible-playbook will show the full path to the task file, but this generally means that you need to restart the play in a higher verbosity to get the information you could have had readily available.
====
Expand Down