2024-09-26 22:02:36 +00:00
|
|
|
---
|
2024-10-02 22:50:21 +00:00
|
|
|
- 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
|
2024-09-26 22:02:36 +00:00
|
|
|
|
2024-10-02 22:50:21 +00:00
|
|
|
- name: Include service roles
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: "{{ services_item }}"
|
|
|
|
apply:
|
|
|
|
tags: "{{ services_item }}"
|
|
|
|
tags: always
|
2024-10-03 01:46:55 +00:00
|
|
|
loop: "{{ all_services | my_service_attributes(inventory_hostname) }}"
|
2024-10-02 22:50:21 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: services_item
|