Install sudo config for Asterisk I2C

This commit is contained in:
Stefan Haun 2024-11-03 13:29:02 +01:00
parent 4fbfd031a3
commit 64eee7b7de

View file

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