no more needed sudo

This commit is contained in:
olli 2024-08-21 08:46:45 +02:00
parent 89953eee2d
commit 7c33278923

View File

@ -585,17 +585,6 @@
chdir: /home/docker/matrix.{{inventory_hostname}}
creates: /home/docker/matrix.{{inventory_hostname}}/matrix.init.log
- name: allow matrix-commander-messaging via sudo
blockinfile:
path: /etc/sudoers.d/matrix-notify
mode: "0440"
owner: root
group: root
create: yes
marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: |
ALL ALL=NOPASSWD: /usr/bin/docker compose -f /home/docker/matrix.{{inventory_hostname}}/docker-compose.yml run -T matrix.{{inventory_hostname}}--commander -m * --room * --log-level WARNING WARNING
# - name: /usr/local/sbin/autoupdate.d/matrix.update
# blockinfile:
# path: /usr/local/sbin/autoupdate.d/matrix.update