--- - name: Demonstration of multi tags hosts: nodes tasks: - name: Deleting the user user: name: "{{ user }}" state: absent tags: omit - name: Removing the home directory of removed user raw: "rm -rf /home/{{ user }}" tags: always ... # Use command line variable for "{{ user }}"