Improve stuff a bit
This commit is contained in:
parent
be3c610bd4
commit
3354ce607d
4 changed files with 8 additions and 7 deletions
4
Makefile
4
Makefile
|
@ -1,5 +1,7 @@
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
TAGS ?= all
|
||||||
|
|
||||||
include .env
|
include .env
|
||||||
export
|
export
|
||||||
|
|
||||||
|
@ -49,4 +51,4 @@ all:
|
||||||
$(MAKE) tofu
|
$(MAKE) tofu
|
||||||
$(MAKE) dns
|
$(MAKE) dns
|
||||||
@printf "\n=====\n\n"
|
@printf "\n=====\n\n"
|
||||||
ansible-playbook ./playbooks/serguzim.net.yml
|
ansible-playbook ./playbooks/serguzim.net.yml -t $(TAGS)
|
||||||
|
|
|
@ -40,5 +40,6 @@
|
||||||
file: tasks/reload-caddy.yml
|
file: tasks/reload-caddy.yml
|
||||||
apply:
|
apply:
|
||||||
tags: caddy
|
tags: caddy
|
||||||
tags: caddy
|
tags:
|
||||||
when: "'caddy' in ansible_run_tags"
|
- caddy
|
||||||
|
- never
|
||||||
|
|
|
@ -9,11 +9,9 @@
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
- name: Copy the hooks
|
- name: Copy the hooks
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: hooks/
|
||||||
dest: "{{ hooks_path }}"
|
dest: "{{ hooks_path }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
with_fileglob:
|
|
||||||
- "hooks/*"
|
|
||||||
- name: Create the from directories
|
- name: Create the from directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ('/opt/services/_backup', item | basename) | path_join }}"
|
path: "{{ ('/opt/services/_backup', item | basename) | path_join }}"
|
||||||
|
|
|
@ -17,7 +17,7 @@ services = {
|
||||||
|
|
||||||
"authentik" = {
|
"authentik" = {
|
||||||
name = "authentik"
|
name = "authentik"
|
||||||
host = "node002"
|
host = "node003"
|
||||||
dns = [{
|
dns = [{
|
||||||
domain = "serguzim.me"
|
domain = "serguzim.me"
|
||||||
target = "auth"
|
target = "auth"
|
||||||
|
|
Loading…
Reference in a new issue