Merge pull request 'Install sudo access to i2c tools for Asterisk' (#447) from sudo-asterisk-i2c into master
Reviewed-on: Netz39_Admin/netz39-infra-ansible#447 Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
commit
7a1ee21a87
2 changed files with 12 additions and 0 deletions
1
files/platon/11_asterisk_i2c
Normal file
1
files/platon/11_asterisk_i2c
Normal file
|
@ -0,0 +1 @@
|
|||
asterisk ALL=(root) NOPASSWD: /usr/sbin/i2cget, /usr/sbin/i2cset
|
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue