From ffbd1ceee52dd1f0c47ef52988519e260785032d Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 30 Nov 2021 23:12:49 -0800 Subject: [PATCH] ! Lewdlad & MusicalMaurice now setup --- playbooks/alpha/init.yml | 2 +- playbooks/alpha/setup-docker-plugin.yml | 18 ++++++++++++++++ playbooks/alpha/update-lewdlad.yml | 22 ++++++++++++++++++++ playbooks/alpha/update-musical-maurice.yml | 24 ++++++++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 playbooks/alpha/setup-docker-plugin.yml create mode 100644 playbooks/alpha/update-lewdlad.yml create mode 100644 playbooks/alpha/update-musical-maurice.yml diff --git a/playbooks/alpha/init.yml b/playbooks/alpha/init.yml index a1aa67c..5aa85b9 100644 --- a/playbooks/alpha/init.yml +++ b/playbooks/alpha/init.yml @@ -27,7 +27,7 @@ become: yes become_method: sudo 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 - name: Install Docker components diff --git a/playbooks/alpha/setup-docker-plugin.yml b/playbooks/alpha/setup-docker-plugin.yml new file mode 100644 index 0000000..261c709 --- /dev/null +++ b/playbooks/alpha/setup-docker-plugin.yml @@ -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 + + diff --git a/playbooks/alpha/update-lewdlad.yml b/playbooks/alpha/update-lewdlad.yml new file mode 100644 index 0000000..97a9889 --- /dev/null +++ b/playbooks/alpha/update-lewdlad.yml @@ -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}}" + + diff --git a/playbooks/alpha/update-musical-maurice.yml b/playbooks/alpha/update-musical-maurice.yml new file mode 100644 index 0000000..42db44e --- /dev/null +++ b/playbooks/alpha/update-musical-maurice.yml @@ -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}}" + + + +