1
0
Fork 0
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:
Jerry Vonau 2019-11-20 02:32:05 -06:00
parent c8dab06ea6
commit 021ca725a5
5 changed files with 31 additions and 29 deletions

View 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

View file

@ -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