Skip to content
Snippets Groups Projects
Commit e5b9b935 authored by nimrod's avatar nimrod
Browse files

- Validate config as a task (Ansible's validate requires specifying the config file).

parent 77ff1ea5
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,6 @@
owner: root
group: 0
mode: 0o0644
validate: nginx -t
notify:
- Reload Nginx
......@@ -103,10 +102,13 @@
owner: root
group: 0
mode: 0o0644
validate: nginx -t
notify:
- Reload Nginx
- name: Validate config
command: nginx -t
changed_when: False
- name: Enable service
service:
name: nginx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment