mirror of
https://github.com/Apress/Beginning-Ansible-Concepts-and-Application.git
synced 2024-09-21 06:51:17 +02:00
16 lines
291 B
YAML
16 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"
|
||
|
|