feat(lego): allow setting capabilites on lego binary for net_bind_service

This commit is contained in:
2024-08-01 19:42:36 +02:00
parent 8941b9357a
commit 2aaa529585
3 changed files with 12 additions and 0 deletions

View File

@ -63,6 +63,13 @@
remote_src: true
when: lego_binary_info.rc != 0
- name: Ensure lego is allowed to bind to ports < 1024
community.general.capabilities:
path: "/usr/local/bin/lego"
capability: "cap_net_bind_service+ep"
state: present
when: lego_binary_allow_net_bind_service
- name: Ensure intermediate data is gone
ansible.builtin.file:
path: "{{ item }}"