ansible-role-nginx/molecule/common/playbooks/plus_verify.yml
2021-02-05 16:24:23 +01:00

26 lines
613 B
YAML

---
- name: Verify
hosts: all
tasks:
- name: Check if NGINX Plus is installed
package:
name: nginx-plus
state: present
check_mode: yes
register: install
failed_when: (install is changed) or (install is failed)
- name: Check if NGINX Plus service is running
service:
name: nginx
state: started
enabled: yes
check_mode: yes
register: service
failed_when: (service is changed) or (service is failed)
- name: Verify NGINX Plus is up and running
uri:
url: http://localhost
status_code: 200