From 64eee7b7dedd515fba77c97347b323053b51887b Mon Sep 17 00:00:00 2001 From: Stefan Haun <tux@netz39.de> Date: Sun, 3 Nov 2024 13:29:02 +0100 Subject: [PATCH] Install sudo config for Asterisk I2C --- host-platon.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/host-platon.yml b/host-platon.yml index 3b9983a..b0623ad 100644 --- a/host-platon.yml +++ b/host-platon.yml @@ -277,6 +277,17 @@ append: yes notify: restart asterisk + # Asterisk now executes shell scripts with reduced privileges, so we need to + # use sudo for I2C access. + - name: Set up sudo configuration for Asterisk I2C access + ansible.builtin.copy: + src: "files/platon/11_asterisk_i2c" + dest: "/etc/sudoers.d/" + owner: root + group: root + mode: "0644" + # Asterisk restart is not necessary + - name: Copy sounds ansible.builtin.copy: src: "files/platon/{{ item }}"