enabled option was in wrong task.
This commit is contained in:
parent
572a6e573e
commit
d5ec49b88f
6
debian/roles/webservers-nginx/tasks/main.yml
vendored
6
debian/roles/webservers-nginx/tasks/main.yml
vendored
@ -4,9 +4,9 @@
|
|||||||
- name: Add nginx upstream repository
|
- name: Add nginx upstream repository
|
||||||
apt_repository: repo='deb http://nginx.org/packages/debian/ wheezy nginx' state=present update_cache=yes
|
apt_repository: repo='deb http://nginx.org/packages/debian/ wheezy nginx' state=present update_cache=yes
|
||||||
- name: Install nginx package and ensure it starts on boot
|
- name: Install nginx package and ensure it starts on boot
|
||||||
apt: pkg=nginx state=present enabled=yes
|
apt: pkg=nginx state=present
|
||||||
- name: Stop nginx for now
|
- name: Stop nginx for now and also make it start on boot
|
||||||
service: name=nginx state=stopped
|
service: name=nginx state=stopped enabled=yes
|
||||||
- name: Make nginx related dirs
|
- name: Make nginx related dirs
|
||||||
file: path={{ item }} state=directory
|
file: path={{ item }} state=directory
|
||||||
with_items:
|
with_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user