infrastructure/playbooks/serguzim.net.yml

28 lines
687 B
YAML

---
- name: Run all roles
hosts: serguzim_net
tasks:
- name: Include common roles
ansible.builtin.include_role:
name: "{{ services_item }}"
apply:
tags: "{{ services_item }}"
tags: always
loop:
- always
- backup
- lego
- caddy
- watchtower
loop_control:
loop_var: services_item
- name: Include service roles
ansible.builtin.include_role:
name: "{{ services_item }}"
apply:
tags: "{{ services_item }}"
tags: always
loop: "{{ all_services | my_service_attributes(host_services) }}"
loop_control:
loop_var: services_item