infrastructure/playbooks/serguzim.net.yml

33 lines
828 B
YAML
Raw Normal View History

2024-09-26 22:02:36 +00:00
---
- name: Run all roles
hosts: serguzim_net
2024-10-13 18:31:23 +00:00
vars:
host_services: "{{ all_services | my_service_attributes(inventory_hostname) | union(common_services) }}"
tasks:
- name: Install software
ansible.builtin.include_role:
name: software
apply:
tags: software
tags: software
when: "inventory_hostname == 'node003'"
- name: Include service roles
ansible.builtin.include_role:
name: "{{ services_item }}"
apply:
tags: "{{ services_item }}"
tags: always
2024-10-13 18:31:23 +00:00
loop: "{{ host_services }}"
loop_control:
loop_var: services_item
2024-10-08 19:33:01 +00:00
- name: Reload caddy on caddy tag
ansible.builtin.include_tasks:
file: tasks/reload-caddy.yml
apply:
tags: caddy
2024-10-13 16:30:14 +00:00
tags:
- caddy
- never