ansible-role-nginx/molecule/uninstall/verify.yml

12 lines
264 B
YAML
Raw Normal View History

---
- name: Verify
hosts: all
tasks:
- name: Check if NGINX is installed
ansible.builtin.package:
name: nginx
state: absent
check_mode: true
register: install
failed_when: (install is changed) or (install is failed)