Better tags

This commit is contained in:
Wojciech Kozlowski 2022-12-14 21:20:00 +01:00
parent 5d1877bfec
commit 513e21540a

View File

@ -3,20 +3,18 @@
hosts: "zfs"
tasks:
- name: "datasets_system"
ansible.builtin.include_role:
ansible.builtin.import_role:
name: "datasets_system"
apply:
tags: "services:datasets_system"
tags: "always"
- name: "datasets_user"
ansible.builtin.include_role:
name: "datasets_user"
apply:
tags:
- "services:{{ services_service_name }}"
- "services:datasets_user"
- "services:datasets_user:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:datasets_user"
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
loop_control:
@ -35,9 +33,9 @@
name: "setup_user"
apply:
tags:
- "services:{{ services_service_name }}"
- "services:setup_user"
- "services:setup_user:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:setup_user"
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
loop_control: