Replace dev playbook with tagged site playbook

Removed the `site-dev.yml` playbook in favor of tagging all included
roles in the main playbook. This way there are no 2 playbooks to keep
manually in sync and the specific roles can still be run just like from
the dev playbook by invoking the intended roles through `--tag myrole`
or `--skip-tags myskippedrole`.
This commit is contained in:
Marty Oehme 2021-12-09 11:42:54 +01:00
parent acc9638cfd
commit c5eac2a846
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 70 additions and 30 deletions

View file

@ -1,14 +0,0 @@
---
- hosts: docker_swarm_manager_node
roles:
- whoami
- wallabag
- miniflux
- searx
- traggo
- monica
- nextcloud
- shaarli
- landingpage
- blog

View file

@ -1,21 +1,75 @@
---
- hosts: all
roles:
- system-upgrade
- docker
- docker-swarm
tasks:
- name: Make sure system is fully upgraded
include_role:
role: system-upgrade
tags: system-upgrade
- name: Make sure docker is installed
include_role:
role: docker
tags: docker
- name: Make sure docker-swarm is set up
include_role:
role: docker-swarm
tags: docker-swarm
- hosts: docker_swarm_manager_node
roles:
- caddy
- whoami
- wallabag
- miniflux
- searx
- traggo
- monica
- nextcloud
- shaarli
- landingpage
- blog
tasks:
- name: Install caddy reverse proxy
include_role:
role: caddy
tags: caddy
- name: Install whoami
include_role:
role: whoami
tags: whoami
- name: Install wallabag
include_role:
role: wallabag
tags: wallabag
- name: Install miniflux
include_role:
role: miniflux
tags: miniflux
- name: Install searx
include_role:
role: searx
tags: searx
- name: Install traggo
include_role:
role: traggo
tags: traggo
- name: Install monica
include_role:
role: monica
tags: monica
- name: Install nextcloud
include_role:
role: nextcloud
tags: nextcloud
- name: Install shaarli
include_role:
role: shaarli
tags: shaarli
- name: Install landingpage
include_role:
role: landingpage
tags: landingpage
- name: Install blog
include_role:
role: blog
tags: blog