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}}" + + + +