From 28c76a43c348456af3d1508c88c73edaa059735c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 5 Dec 2021 13:05:03 +0000 Subject: roles/workstation: Allow per-tag tasks in playbook --- roles/workstation/tasks/main.yml | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'roles/workstation/tasks') diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml index f981545..c20b81b 100644 --- a/roles/workstation/tasks/main.yml +++ b/roles/workstation/tasks/main.yml @@ -1,19 +1,34 @@ - name: include packages - include_tasks: pkgs.yml - tags: task_pkgs + tags: always + include_tasks: + file: pkgs.yml + apply: + tags: task_pkgs - name: include operating system setup - include_tasks: "os_{{ ansible_distribution | lower }}.yml" - tags: task_system + tags: always + include_tasks: + file: "os_{{ ansible_distribution | lower }}.yml" + apply: + tags: task_system - name: include shell setup - include_tasks: shell.yml - tags: task_shell + tags: always + include_tasks: + file: shell.yml + apply: + tags: task_shell - name: include doas setup - include_tasks: doas.yml - tags: task_doas + tags: always + include_tasks: + file: doas.yml + apply: + tags: task_doas - name: include smartcard setup - include_tasks: smartcard.yml - tags: task_smartcard + tags: always + include_tasks: + file: smartcard.yml + apply: + tags: task_smartcard -- cgit v1.2.3