update to using 'import_tasks'

This commit is contained in:
ben 2022-09-19 08:23:23 +02:00
parent 4d2971b777
commit e20d0bdb05
58 changed files with 73 additions and 55 deletions
roles
authelia/tasks
backup/tasks
bear/tasks
certbot/tasks
common-letsencrypt/tasks
common/tasks
coturn/tasks
cupsd/tasks
deadspace/tasks
docker/tasks
dockreg/tasks
dotfiles/tasks
elk/tasks
fde-dropbear/tasks
filebeat/tasks
gitea/tasks
haproxy/tasks
hass/tasks
invidious/tasks
jellyfin/tasks
jenkins/tasks
kvm/tasks
mainframe/tasks
mariadb/tasks
matrix-admin/tasks
matrix-bridge-smtp/tasks
matrix-element/tasks
matrix-hydrogen/tasks
matrix-nginx/tasks
matrix-registration/tasks
matrix-synapse/tasks
mayan/tasks
mirrors/tasks
monitoring-server/tasks
nfs/tasks
nginx-websites/tasks
nginx/tasks
nitter/tasks
pihole/tasks
postfix/tasks
postgresql/tasks
redis/tasks
rpi/tasks
rsyslog/tasks
samba/tasks
sensors/tasks
sudoisbot/tasks
sudoisytdl/tasks
telegraf/tasks
timemachine/tasks
tunnel/tasks
unifi/tasks
users/tasks
weblate/tasks
wireguard/tasks
www/tasks
xmrig/tasks
zflux/tasks

View File

@ -1,3 +1,3 @@
---
- include: authelia.yml
- import_tasks: authelia.yml
tags: authelia

View File

@ -1,4 +1,4 @@
---
- include: backup.yml
- import_tasks: backup.yml
tags: backup

View File

@ -1,3 +1,3 @@
---
- include: bear.yml
- import_tasks: bear.yml
tags: bear

View File

@ -1,3 +1,3 @@
---
- include: certbot.yml
- import_tasks: certbot.yml
tags: certbot

View File

@ -1,3 +1,3 @@
---
- include: common-letsencrypt.yml
- import_tasks: common-letsencrypt.yml
tags: common-letsencrypt

View File

@ -1,5 +1,5 @@
---
# file: roles/common/tasks/main.yml
- include: common.yml
- import_tasks: common.yml
tags:
- common

View File

@ -1,3 +1,3 @@
---
- include: coturn.yml
- import_tasks: coturn.yml
tags: coturn

View File

@ -0,0 +1,3 @@
---
- import_tasks: cupsd.yml
tags: cupsd

View File

@ -1,3 +1,3 @@
---
- include: deadspace.yml
- import_tasks: deadspace.yml
tags: deadspace

View File

@ -1,3 +1,3 @@
---
- include: docker.yml
- import_tasks: docker.yml
tags: docker

View File

@ -1,3 +1,3 @@
---
- include: dockreg.yml
- import_tasks: dockreg.yml
tags: dockreg

View File

@ -1,4 +1,4 @@
---
# file: roles/dotfiles/tasks/main.yml
- include: dotfiles.yml
- import_tasks: dotfiles.yml
tags: dotfiles

View File

@ -1,3 +1,3 @@
---
- include: elk.yml
- import_tasks: elk.yml
tags: elk

View File

@ -1,3 +1,3 @@
---
- include: fde-dropbear.yml
- import_tasks: fde-dropbear.yml
tags: fde-dropbear

View File

@ -1,3 +1,3 @@
---
- include: filebeat.yml
- import_tasks: filebeat.yml
tags: filebeat

View File

@ -1,3 +1,3 @@
---
- include: gitea.yml
- import_tasks: gitea.yml
tags: gitea

View File

@ -1,3 +1,3 @@
---
- include: haproxy.yml
- import_tasks: haproxy.yml
tags: haproxy

View File

@ -0,0 +1,3 @@
---
- import_tasks: hass.yml
tags: hass

View File

@ -1,3 +1,3 @@
---
- include: invidious.yml
- import_tasks: invidious.yml
tags: invidious

View File

@ -1,3 +1,3 @@
---
- include: jellyfin.yml
- import_tasks: jellyfin.yml
tags: jellyfin

View File

@ -1,3 +1,3 @@
---
- include: jenkins.yml
- import_tasks: jenkins.yml
tags: jenkins

3
roles/kvm/tasks/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
- import_tasks: kvm.yml
tags: kvm

View File

@ -4,5 +4,5 @@
tags:
- always
- include: mainframe.yml
- import_tasks: mainframe.yml
tags: mainframe

View File

@ -1,4 +1,4 @@
---
- include: mariadb.yml
- import_tasks: mariadb.yml
tags: mariadb

View File

@ -0,0 +1,3 @@
---
- import_tasks: matrix-admin.yml
tags: matrix-admin

View File

@ -1,3 +1,3 @@
---
- include: matrix-bridge-smtp.yml
- import_tasks: matrix-bridge-smtp.yml
tags: matrix-bridge-smtp, matrix

View File

@ -1,3 +1,3 @@
---
- include: matrix-element.yml
- import_tasks: matrix-element.yml
tags: matrix-element, matrix

View File

@ -1,3 +1,3 @@
---
- include: matrix-hydrogen.yml
- import_tasks: matrix-hydrogen.yml
tags: matrix-hydrogen

View File

@ -1,3 +1,3 @@
---
- include: matrix-nginx.yml
- import_tasks: matrix-nginx.yml
tags: matrix-nginx

View File

@ -1,3 +1,3 @@
---
- include: matrix-registration.yml
- import_tasks: matrix-registration.yml
tags: matrix-registration, matrix

View File

@ -1,5 +1,5 @@
---
- include: matrix-synapse.yml
- import_tasks: matrix-synapse.yml
tags:
- matrix-synapse
- matrix

View File

@ -1,3 +1,3 @@
---
- include: mayan.yml
- import_tasks: mayan.yml
tags: mayan

View File

@ -1,3 +1,3 @@
---
- include: mirrors.yml
- import_tasks: mirrors.yml
tags: mirrors

View File

@ -35,7 +35,7 @@
apt_repository:
repo: "deb {{ item }}"
state: present
update_cache: yes
update_cache: true
with_items:
- https://repos.influxdata.com/{{ ansible_lsb.id | lower }} {{ ansible_lsb.codename }} stable
- https://packages.grafana.com/oss/deb stable main
@ -61,7 +61,7 @@
- name: enable influxdb, grafana
service:
name: "{{ item }}"
enabled: yes
enabled: true
with_items:
- influxdb
- grafana-server
@ -97,11 +97,11 @@
tags:
- influxdb-systemd
- include: influxdb.yml
- import_tasks: influxdb.yml
tags:
#- monitoring-server
- influxdb
- include: grafana.yml
- import_tasks: grafana.yml
tags:
- grafana

View File

@ -1,3 +1,3 @@
---
- include: nfs.yml
- import_tasks: nfs.yml
tags: nfs

View File

@ -1,3 +1,3 @@
---
- include: nginx-websites.yml
- import_tasks: nginx-websites.yml
tags: nginx-websites

View File

@ -1,3 +1,3 @@
---
- include: nginx.yml
- import_tasks: nginx.yml
tags: nginx

View File

@ -1,3 +1,3 @@
---
- include: nitter.yml
- import_tasks: nitter.yml
tags: nitter

View File

@ -1,3 +1,3 @@
---
- include: pihole.yml
- import_tasks: pihole.yml
tags: pihole

View File

@ -1,3 +1,3 @@
---
- include: postfix.yml
- import_tasks: postfix.yml
tags: postfix

View File

@ -1,3 +1,3 @@
---
- include: postgresql.yml
- import_tasks: postgresql.yml
tags: postgresql

View File

@ -1,4 +1,4 @@
---
- include: redis.yml
- import_tasks: redis.yml
tags: redis

View File

@ -1,5 +1,5 @@
---
# file: roles/rpi/tasks/main.yml
- include: rpi.yml
- import_tasks: rpi.yml
tags: rpi
when: ansible_lsb.id == "Raspbian"

View File

@ -1,3 +1,3 @@
---
- include: rsyslog.yml
- import_tasks: rsyslog.yml
tags: rsyslog

View File

@ -0,0 +1,3 @@
---
- import_tasks: samba.yml
tags: samba

View File

@ -1,3 +1,3 @@
---
- include: sensors.yml
- import_tasks: sensors.yml
tags: sensors

View File

@ -0,0 +1,3 @@
---
- import_tasks: sudoisbot.yml
tags: sudoisbot

View File

@ -1,3 +1,3 @@
---
- include: sudoisytdl.yml
- import_tasks: sudoisytdl.yml
tags: sudoisytdl

View File

@ -1,5 +1,5 @@
---
- include: telegraf.yml
- import_tasks: telegraf.yml
tags:
- telegraf

View File

@ -1,3 +1,3 @@
---
- include: timemachine.yml
- import_tasks: timemachine.yml
tags: timemachine

View File

@ -1,3 +1,3 @@
---
- include: tunnel.yml
- import_tasks: tunnel.yml
tags: tunnel

View File

@ -1,3 +1,3 @@
---
- include: unifi.yml
- import_tasks: unifi.yml
tags: unifi

View File

@ -1,3 +1,3 @@
---
- include: users.yml
- import_tasks: users.yml
tags: users

View File

@ -1,3 +1,3 @@
---
- include: weblate.yml
- import_tasks: weblate.yml
tags: weblate

View File

@ -1,3 +1,3 @@
---
- include: wireguard.yml
- import_tasks: wireguard.yml
tags: wireguard

View File

@ -1,3 +1,3 @@
---
- include: www.yml
- import_tasks: www.yml
tags: www

View File

@ -1,3 +1,3 @@
---
- include: xmrig.yml
- import_tasks: xmrig.yml
tags: xmrig

View File

@ -1,3 +1,3 @@
---
- include: zflux.yml
- import_tasks: zflux.yml
tags: zflux