summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/rules/deprecated_local_action.md
blob: d5e8361b04bac35c9bef355d6e2d282d116ffc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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: boto3_facts
```

## Correct Code

```yaml
- name: Task example
    boto3_facts:
  delegate_to: localhost # <-- recommended way to run on localhost
```