Beginning-Ansible-Concepts-.../chapter11/roles/webserver/handlers/main.yml

16 lines
291 B
YAML
Raw Normal View History

2022-03-21 18:17:54 +01:00
---
- name: Reload nginx
service:
name: nginx
state: reloaded
listen: "Reload web services"
- name: Validate that the http_port is working
wait_for:
host: "{{ ansible_host }}"
port: "{{ http_port }}"
timeout: 5
connection: local
listen: "Reload web services"