Beginning-Ansible-Concepts-.../chapter12/roles/webserver/handlers/main.yml
2022-04-23 08:57:49 +01:00

15 lines
291 B
YAML

---
- 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"