Remove unnecessary use of become from some roles

This should make execution much faster
This commit is contained in:
Jake Howard
2024-09-05 23:33:49 +01:00
parent 25cd394f08
commit d5a7a61171
68 changed files with 11 additions and 243 deletions

View File

@ -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