diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-03-25 11:49:45 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-03-25 11:49:45 -0700 |
commit | be8701c13800eb84fc4afb118c16738abee55850 (patch) | |
tree | 7060e1b8ca09c1c9fd2957ba258a9ad624035d1d /roles/nginx/tasks | |
download | infra-be8701c13800eb84fc4afb118c16738abee55850.tar.gz infra-be8701c13800eb84fc4afb118c16738abee55850.zip |
import basics from NSA's commission repo
Diffstat (limited to 'roles/nginx/tasks')
-rw-r--r-- | roles/nginx/tasks/main.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml new file mode 100644 index 0000000..8b32f07 --- /dev/null +++ b/roles/nginx/tasks/main.yml @@ -0,0 +1,24 @@ +--- +- name: Install nginx + apt: name=nginx state=present + +- name: Copy nginx configuration for wordpress + template: src=default.conf dest=/etc/nginx/conf.d/default.conf + notify: restart nginx + +mkdir -p /srv/http/default + +- name: Setup default nginx pages + copy: + src: "{{item.src}}" + dest: "/srv/http/default/www/{{item.dest}}" + owner: www-data + group: www-data + force: no + tags: + - nginx + with_items: + - {src: "static_files/nginx_default_404.html", dest: "404.html"} + - {src: "static_files/nginx_default_50x.html", dest: "50x.html"} + - {src: "static_files/nginx_default_favicon.png", dest: "favicon.png"} + - {src: "static_files/nginx_default_index.html", dest: "index.html"} |