-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sonu Meena
committed
Jan 23, 2015
1 parent
1a0b3a4
commit a2273a6
Showing
3 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
#file handlers/main.yml | ||
|
||
- name: reload nginx | ||
service: name=nginx state=reloaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
--- | ||
#file tasks/main.yml | ||
|
||
- name: Prepare directory layout | ||
file: path={{item}} state=directory | ||
with_items: | ||
- "/opt/helloWorld" | ||
- "/opt/helloWorld/logs" | ||
- "/opt/helloWorld/conf" | ||
|
||
- name: Prepare the nginx.conf config file | ||
template: src=nginx.conf.j2 dest=/opt/helloWorld/conf/nginx.conf mode=0644 | ||
|
||
- name: Start the Nginx server | ||
shell: cd /opt/helloWorld; /usr/local/openresty/nginx/sbin/nginx -p `pwd`/ -c /opt/helloWorld/conf/nginx.conf | ||
sudo: yes | ||
template: src=nginx.conf.j2 dest=/usr/local/openresty/nginx/conf/nginx.conf mode=0644 | ||
notify: reload nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters