From fc206a39eba8f5014a03d1cce3308ea11151ed5e Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Thu, 4 Mar 2021 17:25:40 +0100 Subject: [PATCH] Check and block if tag is not set --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 9c84dfd..8ec24ac 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,11 @@ --- +- name: run only if 'install' or 'upgrade' is specified + meta: end_host + when: + - "install not in ansible_run_tags" + - "upgrade not in ansible_run_tags" + tags: always + - name: Create bitwarden users ansible.builtin.user: name: "{{ item.name }}"