Check and block if tag is not set

This commit is contained in:
Dryusdan 2021-03-04 17:25:40 +01:00
parent dd0ebcac90
commit fc206a39eb
1 changed files with 7 additions and 0 deletions

View File

@ -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 }}"