add tags to roles in playbooks; scope vaults

This commit is contained in:
surtur 2023-08-01 22:34:57 +02:00
parent 782755b4a3
commit 152e88bc77
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
3 changed files with 19 additions and 10 deletions

@ -1,13 +1,15 @@
--- ---
- hosts: nbgw - hosts: nbgw
vars_files:
- ../group_vars/all/vault_common.yml
- ../host_vars/nbgw.yml
roles: roles:
- common - role: common
vars_files:
- ../group_vars/all/vault_common.yml
tags: [common]
- netbird - netbird
- role: pkg - role: pkg
vars: vars:
pkgs_to_install: "{{ nbgw.pkgs.install }}" pkgs_to_install: "{{ nbgw.pkgs.install }}"
- headscale tags: [pkg]
- role: headscale
tags: [headscale]
... ...

@ -6,5 +6,7 @@
- role: user - role: user
vars: vars:
user: "{{ users.testpcmt }}" user: "{{ users.testpcmt }}"
- gitea tags: [user]
- role: gitea
tags: [gitea]
... ...

@ -3,12 +3,17 @@
# connection: local # connection: local
vars_files: vars_files:
- nothingatall - nothingatall
- ../group_vars/all/vault_common.yml
- ../group_vars/surtur/vault_surtur.yml - ../group_vars/surtur/vault_surtur.yml
roles: roles:
- common - role: common
tags: [common]
vars_files:
- ../group_vars/all/vault_common.yml
# - rand # - rand
- configs - role: configs
- flathub tags: [configs]
- role: flathub
tags: [flathub]
- role: tailscale - role: tailscale
become: true become: true
tags: [tailscale]