Fix http_proxy service dir in k3s_agent role (#400)

* Fix http_proxy service dir in k3s_agent role

* Fix http_proxy reset: rm conf files before dirs

* Fix http_proxy reset rm order

---------

Co-authored-by: Techno Tim <timothystewart6@gmail.com>
This commit is contained in:
Balázs Hasprai
2024-01-25 18:34:46 +01:00
committed by GitHub
parent 5ae8fd1223
commit df9c6f3014
2 changed files with 5 additions and 3 deletions

View File

@@ -51,7 +51,9 @@
name: "{{ item }}"
state: absent
with_items:
- "{{ systemd_dir }}/k3s.service.d/http_proxy.conf"
- "{{ systemd_dir }}/k3s.service.d"
- "{{ systemd_dir }}/k3s-node.service.d/http_proxy.conf"
- "{{ systemd_dir }}/k3s-node.service.d"
when: proxy_env is defined