From 3e4f113d8604f5e7a504f2c06e6947c4985af89c Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Tue, 4 Nov 2025 10:41:45 +0100 Subject: [PATCH] Allow using tags using import_role instead of include_role --- lmn-client.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lmn-client.yml b/lmn-client.yml index 0224455..4d4ff4c 100644 --- a/lmn-client.yml +++ b/lmn-client.yml @@ -80,15 +80,17 @@ loop_var: rolename when: custom_roles is defined - - name: Final tasks - ansible.builtin.include_role: - name: "{{ role }}" - loop_control: - loop_var: role - loop: - - lmn_security - - lmn_finish - - lmn_tmpfixes + - name: Import role security + ansible.builtin.import_role: + name: lmn_security + + - name: Import role finish + ansible.builtin.import_role: + name: lmn_finish + + - name: Import role tmpfixes + ansible.builtin.import_role: + name: lmn_tmpfixes - name: Apply roles that must run serial