Skip to content

Commit

Permalink
docs issue ansible#2864 update urls
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Jan 3, 2023
1 parent d74ef7d commit 27a20a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/loop_var_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RoleLoopVarPrefix(AnsibleLintRule):

id = "loop-var-prefix"
link = (
"https://docs.ansible.com/ansible/latest/user_guide/"
"https://docs.ansible.com/ansible/latest/playbook_guide/"
"playbooks_loops.html#defining-inner-and-outer-variable-names-with-loop-var"
)
description = """\
Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/no_handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This rule checks for the correct handling of changes to results or conditions.

If a task has a `when: result.changed` condition, it effectively acts as a
[handler](https://docs.ansible.com/ansible/latest/user_guide/playbooks_handlers.html).
[handler](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_handlers.html#handlers).
The recommended approach is to use `notify` and move tasks to `handlers`.
If necessary you can silence the rule by add a `# noqa: no-handler` comment at the end of the line.

Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/no_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UseHandlerRatherThanWhenChangedRule(AnsibleLintRule):
"acting as a handler. You could use ``notify`` and move that task to "
"``handlers``."
)
link = "https://docs.ansible.com/ansible/latest/user_guide/playbooks_handlers.html"
link = "https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_handlers.html#handlers"
severity = "MEDIUM"
tags = ["idiom"]
version_added = "historic"
Expand Down

0 comments on commit 27a20a2

Please sign in to comment.