! Lewdlad & MusicalMaurice now setup

This commit is contained in:
shockrah 2021-11-30 23:12:49 -08:00
parent a8ddf88d00
commit ffbd1ceee5
4 changed files with 65 additions and 1 deletions

View File

@ -27,7 +27,7 @@
become: yes become: yes
become_method: sudo become_method: sudo
apt_repository: apt_repository:
repo: deb https://download.docker.com/linux/ubuntu/gpg buster stable repo: deb https://download.docker.com/linux/ubuntu impish stable
state: present state: present
- name: Install Docker components - name: Install Docker components

View File

@ -0,0 +1,18 @@
---
- hosts: alpha
remote_user: ubuntu
tasks:
- name: Install Pip3
become: yes
become_method: sudo
apt:
name: python3-pip
update_cache: yes
- name: Install Docker Pip Package
become: yes
become_method: sudo
pip:
name: docker

View File

@ -0,0 +1,22 @@
---
- hosts: alpha
remote_user: ubuntu
become: yes
become_method: sudo
tasks:
- name: Setup lewdlad on latest image
community.docker.docker_container:
name: lewdlad
image: registry.gitlab.com/shockrah/left-coast-server-bot
pull: yes
restart_policy: always
recreate: yes
env:
DISCORD_ID: "{{DISCORD_ID}}"
DISCORD_TOKEN: "{{DISCORD_TOKEN}}"
AWS_API_ID: "{{AWS_API_ID}}"
AWS_API_STAGE: "{{AWS_API_STAGE}}"
AWS_API_REGION: "{{AWS_API_REGION}}"
AWS_API_KEY: "{{AWS_API_KEY}}"

View File

@ -0,0 +1,24 @@
---
- hosts: alpha
remote_user: ubuntu
become: yes
become_method: sudo
tasks:
- name: Setup Musical Maurice
community.docker.docker_container:
name: maurice
image: codetheweb/muse
pull: yes
restart_policy: always
recreate: yes
volumes:
- "{{MUSE_DATA_DIR}}:/data"
env:
DISCORD_TOKEN: "{{DISCORD_TOKEN_MAURICE}}"
SPOTIFY_CLIENT_ID: "{{SPOTIFY_CLIENT_ID}}"
SPOTIFY_CLIENT_SECRET: "{{SPOTIFY_CLIENT_SECRET}}"
YOUTUBE_API_KEY: "{{YOUTUBE_API_KEY}}"