Remove unnecessary use of become
from some roles
This should make execution much faster
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
- "{{ tailscale_cidr }}"
|
||||
register: routes
|
||||
changed_when: false
|
||||
become: true
|
||||
|
||||
- name: Add route to tailscale hosts via ingress
|
||||
command:
|
||||
@ -18,5 +17,4 @@
|
||||
- "{{ tailscale_cidr }}"
|
||||
- via
|
||||
- "{{ pve_hosts.ingress.ip }}"
|
||||
become: true
|
||||
when: tailscale_cidr not in routes.stdout
|
||||
|
Reference in New Issue
Block a user