Rename files; use vars file
Some checks failed
Configure Domain / deploy (push) Failing after 1m17s

This commit is contained in:
2023-11-24 19:28:25 +02:00
parent 365077ec7a
commit 0838da4d20
5 changed files with 12 additions and 7 deletions

View File

@@ -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

@@ -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_APIT_TOKEN: some-cloudflare-token