feat: added tags for multiple roles used by internal.yml playbook

This commit is contained in:
NaeiKinDus 2024-07-13 00:00:00 +00:00
parent 736d90b82d
commit 3ec536f299
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
3 changed files with 45 additions and 5 deletions

View file

@ -4,17 +4,23 @@
gather_facts: false
tasks:
- name: include provisioner role
include_role:
ansible.builtin.include_role:
name: nullified.infrastructure.provisioner
apply:
tags: [provisioner]
tags: [provisioner]
- name: load provisioner facts
hosts: internal
gather_facts: false
tasks:
- name: include provisioner role
include_role:
ansible.builtin.include_role:
name: nullified.infrastructure.provisioner
tasks_from: load_facts.yml
apply:
tags: [always]
tags: [always]
- name: setup internal infrastructure
hosts: internal
@ -23,9 +29,15 @@
- name: include security role
ansible.builtin.include_role:
name: nullified.infrastructure.security
apply:
tags: [security]
tags: [security]
- name: include common role
ansible.builtin.include_role:
name: nullified.infrastructure.common
apply:
tags: [common]
tags: [common]
- name: setup servers
hosts: internal:&server
@ -33,6 +45,9 @@
- name: include server role
ansible.builtin.include_role:
name: nullified.infrastructure.server
apply:
tags: [server]
tags: [server]
- name: setup vault
hosts: internal:&vault
@ -40,6 +55,9 @@
- name: include vault role
ansible.builtin.include_role:
name: nullified.infrastructure.vault
apply:
tags: [vault]
tags: [vault]
- name: setup mariadb servers
hosts: internal:&mariadb
@ -47,6 +65,9 @@
- name: include mariadb role
ansible.builtin.include_role:
name: nullified.infrastructure.mariadb
apply:
tags: [mariadb]
tags: [mariadb]
- name: setup workstations
hosts: internal:&workstation
@ -54,9 +75,15 @@
- name: include workstation role
ansible.builtin.include_role:
name: nullified.infrastructure.workstation
apply:
tags: [workstation]
tags: [workstation]
- name: include development role
ansible.builtin.include_role:
name: nullified.infrastructure.development
apply:
tags: [development]
tags: [development]
- name: setup gaming tools
hosts: internal:&gaming
@ -64,6 +91,9 @@
- name: include gaming role
ansible.builtin.include_role:
name: nullified.infrastructure.gaming
apply:
tags: [gaming]
tags: [gaming]
- name: install K3S
hosts: internal:&k3s
@ -71,3 +101,6 @@
- name: include k3s role
ansible.builtin.include_role:
name: nullified.infrastructure.k3s
apply:
tags: [k3s]
tags: [k3s, helm, opentofu]