Skip to content

Commit

Permalink
Implemented audio role
Browse files Browse the repository at this point in the history
Role to enable audio support.
  • Loading branch information
freemanjp committed Jul 5, 2016
1 parent 07f7016 commit cac4302
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
@@ -1,2 +1,3 @@
---
# defaults file for audio
# Users to add to the audio (and video) groups.
audio_users: []
19 changes: 18 additions & 1 deletion tasks/main.yml
@@ -1,2 +1,19 @@
---
# tasks file for audio
- name: add specified users to audio and video groups
user:
name: "{{ item }}"
groups: 'audio,video'
append: yes
with_items: "{{ audio_users }}"

- name: install audio packages
apt:
name: "{{ item }}"
state: present
with_items:
- linux-sound-base
- alsa-base
- alsa-utils
- linux-image-{{ ansible_kernel }}
- linux-image-extra-{{ ansible_kernel }}
- libasound2

0 comments on commit cac4302

Please sign in to comment.