diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-18 18:38:46 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-18 18:38:46 +0100 |
commit | cd31d75443119be6580e91d5a9a3ab7742f875ab (patch) | |
tree | 0d12fe52bbb796969336dae613e66ca5f433aba4 /roles/install_nginx/tasks | |
parent | 710a210ae6f165c2e3ce165d30d27f189311656b (diff) |
updated setup_fastd.yml
added features:
- fastd-services-api
- install_nginx
- install_monitoring
Diffstat (limited to 'roles/install_nginx/tasks')
-rw-r--r-- | roles/install_nginx/tasks/main.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/install_nginx/tasks/main.yml b/roles/install_nginx/tasks/main.yml new file mode 100644 index 0000000..5b8fe65 --- /dev/null +++ b/roles/install_nginx/tasks/main.yml @@ -0,0 +1,26 @@ +--- +- name: install nginx + pacman: + name: nginx + state: present + +- name: copy nginx.conf + copy: + src: nginx.conf + dest: /etc/nginx/nginx.conf + +- name: add sites-available folder + file: + path: /etc/nginx/sites-available + state: directory + +- name: add sites-enabled folder + file: + path: /etc/nginx/sites-enabled + state: directory + +- name: start and enable nginx + systemd: + name: nginx.service + enabled: yes + state: started |