diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-05 13:05:03 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-05 17:51:10 +0000 |
commit | 28c76a43c348456af3d1508c88c73edaa059735c (patch) | |
tree | c3e30e7b0621d6b4ab5d6588931d5551d4dda92f /roles/workstation | |
parent | 7fbc0267f4077414340bd0ad2337dc317083ab0e (diff) | |
download | rules-28c76a43c348456af3d1508c88c73edaa059735c.tar.gz |
roles/workstation: Allow per-tag tasks in playbook
Diffstat (limited to 'roles/workstation')
-rw-r--r-- | roles/workstation/tasks/main.yml | 35 |
1 files changed, 25 insertions, 10 deletions
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 |