blob: 68f434517086debf358799509160063b5d49275c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# deprecated-local-action
This rule recommends using `delegate_to: localhost` instead of the
`local_action`.
## Problematic Code
```yaml
---
- name: Task example
local_action: # <-- this is deprecated
module: ansible.builtin.debug
```
## Correct Code
```yaml
- name: Task example
ansible.builtin.debug:
delegate_to: localhost # <-- recommended way to run on localhost
```
!!! note
This rule can be automatically fixed using [`--fix`](../autofix.md) option.
|