1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/nginx/tasks/install.yml
Jerry Vonau 5377c913d0
Update roles/nginx/tasks/install.yml
wording

Co-Authored-By: A Holt <holta@users.noreply.github.com>
2019-11-28 07:28:26 -06:00

27 lines
881 B
YAML

- name: Install nginx required and helper packages
package: name={{ item }} state=present
with_items:
- nginx-extras
- uwsgi
- uwsgi-plugin-python3
- php-fpm
- libnginx-mod-http-subs-filter
- name: Add http server user to shadow group, so it can authenticate Admin Console
user:
name: "{{ apache_user }}"
groups: shadow
- name: Remove the nginx default config
file:
path: /etc/nginx/sites-enabled/default
state: absent
- name: Put config files in place (2 into /etc/nginx, 1 into /etc/{{ apache_service }})
template:
src: '{{ item.src}}'
dest: '{{ item.dest }}'
with_items:
- { src: "roles/nginx/templates/server.conf", dest: "/etc/nginx/" }
- { src: "roles/nginx/templates/nginx.conf", dest: "/etc/nginx/" }
- { src: 'roles/nginx/templates/ports.conf', dest: '/etc/{{ apache_service }}/' , mode: '0644' }