2021-12-07 02:47:13 +01:00
|
|
|
---
|
|
|
|
- name: Verify
|
|
|
|
hosts: all
|
|
|
|
tasks:
|
|
|
|
- name: Check if NGINX is installed
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.package:
|
2021-12-07 02:47:13 +01:00
|
|
|
name: nginx-plus
|
|
|
|
state: absent
|
|
|
|
check_mode: true
|
|
|
|
register: install
|
|
|
|
failed_when: (install is changed) or (install is failed)
|