mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-03 00:03:05 +02:00
init
This commit is contained in:
29
playbooks/05_pullimage.yml
Normal file
29
playbooks/05_pullimage.yml
Normal file
@ -0,0 +1,29 @@
|
||||
- hosts: rhasspy
|
||||
name: Install rhasspy
|
||||
become: true
|
||||
become_user: root
|
||||
tasks:
|
||||
- name: Install curl,mosquitto ...
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- python3-pip
|
||||
- name: Install pip modules
|
||||
ansible.builtin.pip:
|
||||
name: docker
|
||||
- name: Pull image
|
||||
community.docker.docker_image:
|
||||
name: rhasspy/rhasspy
|
||||
source: pull
|
||||
- name: Create container
|
||||
community.docker.docker_container:
|
||||
name: rhasspy
|
||||
image: rhasspy/rhasspy
|
||||
command: --user-profiles /profiles --profile en
|
||||
devices:
|
||||
- "/dev/snd:/dev/snd"
|
||||
restart_policy: unless-stopped
|
||||
volumes:
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
- "/home/jd/.config/rhasspy/profiles:/profiles"
|
||||
ports:
|
||||
- "12101:12101"
|
Reference in New Issue
Block a user