10 Commits

Author SHA1 Message Date
f1b31ef540 I am dumb v2
All checks were successful
Configure Domain / deploy (push) Successful in 1m18s
2023-11-24 19:33:25 +02:00
d18cfc6020 I am dumb
All checks were successful
Configure Domain / deploy (push) Successful in 1m18s
2023-11-24 19:30:28 +02:00
0838da4d20 Rename files; use vars file
Some checks failed
Configure Domain / deploy (push) Failing after 1m17s
2023-11-24 19:28:25 +02:00
365077ec7a Fix curl path
Some checks failed
Configure Domain / deploy (push) Failing after 1m27s
2023-11-24 17:05:12 +02:00
041f450f1e Delay Python Docker modules installation
All checks were successful
Configure Domain / deploy (push) Successful in 1m25s
2023-11-24 17:01:13 +02:00
4638e36c72 Add Docker-compose python module
All checks were successful
Configure Domain / deploy (push) Successful in 1m22s
2023-11-24 16:54:24 +02:00
2f08e71fd9 Add Docker python module
All checks were successful
Configure Kumonoboru / deploy (push) Successful in 1m23s
2023-11-24 15:53:04 +02:00
4ff7018c89 sad!
All checks were successful
Configure Kumonoboru / deploy (push) Successful in 1m19s
2023-11-24 15:40:11 +02:00
2ef265aacd sad
Some checks failed
Configure Kumonoboru / deploy (push) Failing after 1m7s
2023-11-24 15:17:17 +02:00
7bf32ad4c8 stuff
Some checks failed
Configure Kumonoboru / deploy (push) Failing after 1m4s
2023-11-24 15:13:25 +02:00
6 changed files with 22 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
name: Configure Kumonoboru
name: Configure Domain
on:
push:
@@ -19,7 +19,7 @@ jobs:
- name: Install Ansible
run: |
python3 -m pip install --upgrade pip
pip install ansible
pip install ansible
- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.0
@@ -33,4 +33,4 @@ jobs:
- name: Run Ansible Playbook
run: |
ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}" ANSIBLE_TOKEN="${{ secrets.ANSIBLE_TOKEN }}"' traefik.yaml -vv
ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}" ANSIBLE_TOKEN="${{ secrets.ANSIBLE_TOKEN }}"' setup-traefik-domain.yaml -vv

View File

@@ -80,7 +80,6 @@ services:
- ./redis:/data
networks:
- internal
~
secrets:
hmac:

View File

@@ -8,14 +8,12 @@
dest: "{{ container_dir }}/{{ item }}"
version: "{{ item }}-cv"
- ansible.builtin.cmd:
- curl -o docker-compose.yml.j2 "https://shmick:{{ ANSIBLE_TOKEN }}@git.pukeko.xyz/shmick/docker/raw/branch/{{ item }}/docker-compose.yml.j2"
- ansible.builtin.command: curl -o docker-compose.yml.j2 "https://shmick:{{ ANSIBLE_TOKEN }}@git.pukeko.xyz/shmick/docker/raw/branch/{{ item }}-cv/docker-compose.yml.j2"
delegate_to: localhost
- ansible.builtin.template:
src: "docker-compose.yml.j2"
dest: "{{ container_dir }}/{{ item }}/docker-compose.yml"
delegate_to: localhost
- community.docker.docker_compose:
project_src: "{{ container_dir }}/{{ item }}"

View File

@@ -51,3 +51,10 @@
name: containerd
state: started
enabled: yes
- name: Install Docker Python modules
ansible.builtin.pip:
name:
- docker
- docker-compose
state: latest

View File

@@ -1,17 +1,15 @@
- hosts: takahe
gather_facts: yes
become: yes
vars:
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
ansible_sudo_pass: "{{ ANSIBLE_SUDO_PASS }}"
container_dir: /srv/docker
vars_files:
- ./vars.yaml
tasks:
- name: Install Docker CE ## From: https://gist.github.com/rbq/886587980894e98b23d0eee2a1d84933, https://docs.docker.com/engine/install/
include_tasks: docker.yaml
include_tasks: setup-docker.yaml
- name: Set up containers
include_tasks: containers.yaml
include_tasks: setup-containers.yaml
with_items:
- ddclient
- prometheus

7
vars.yaml Normal file
View File

@@ -0,0 +1,7 @@
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
ansible_sudo_pass: "{{ ANSIBLE_SUDO_PASS }}"
container_dir: /srv/docker
DOMAIN: potato.com
CF_API_KEY: some-cloudflare-key
CF_API_EMAIL: potato@potato.com
CF_API_TOKEN: some-cloudflare-token