mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
split nginx - move httpd-enable
This commit is contained in:
parent
c8dab06ea6
commit
021ca725a5
5 changed files with 31 additions and 29 deletions
18
roles/nginx/tasks/install.yml
Normal file
18
roles/nginx/tasks/install.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- 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
|
|
@ -1,13 +1,3 @@
|
|||
- 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
|
||||
when: nginx_install | bool
|
||||
|
||||
- name: Put the config file in place
|
||||
template:
|
||||
src: '{{ item.src}}'
|
||||
|
@ -22,18 +12,6 @@
|
|||
- { src: 'ports.conf' , dest: '/etc/{{ apache_service }}/' , mode: '0644' }
|
||||
when: nginx_enabled | bool
|
||||
|
||||
- name: Add http server user to shadow group, so it can authenticate Admin Console
|
||||
user:
|
||||
name: "{{ apache_user }}"
|
||||
groups: shadow
|
||||
when: nginx_install | bool
|
||||
|
||||
- name: Remove the nginx default config
|
||||
file:
|
||||
path: /etc/nginx/sites-enabled/default
|
||||
state: absent
|
||||
when: nginx_install | bool
|
||||
|
||||
- name: Insure that apache2 is not running -- we may need port swap
|
||||
systemd:
|
||||
name: apache2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue