mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Apache must be off when NGINX installs
This commit is contained in:
		
							parent
							
								
									2342190016
								
							
						
					
					
						commit
						c2bda06545
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -58,7 +58,7 @@
 | 
				
			||||||
    state: absent
 | 
					    state: absent
 | 
				
			||||||
  when: not apache_allow_sudo
 | 
					  when: not apache_allow_sudo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation.  (This script was installed at the beginning of Stage 3 = roles/3-base-server/tasks/main.yml, which ran Apache playbook = roles/httpd/tasks/main.yml)
 | 
					- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation.  (This script was installed in Stage 3 = roles/3-base-server/tasks/main.yml, which ran roles/web_support/tasks/main.yml)
 | 
				
			||||||
  command: /usr/bin/iiab-refresh-wiki-docs
 | 
					  command: /usr/bin/iiab-refresh-wiki-docs
 | 
				
			||||||
  when: internet_available and not nodocs
 | 
					  when: internet_available and not nodocs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,6 +8,12 @@
 | 
				
			||||||
    - { path: "{{ nginx_conf_dir }}/usb-lib.conf" }
 | 
					    - { path: "{{ nginx_conf_dir }}/usb-lib.conf" }
 | 
				
			||||||
    - { path: "{{ nginx_conf_dir }}/modules.conf" }
 | 
					    - { path: "{{ nginx_conf_dir }}/modules.conf" }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Stop '{{ apache_service }}' systemd service
 | 
				
			||||||
 | 
					  systemd:
 | 
				
			||||||
 | 
					    name: "{{ apache_service }}"    # apache2 or httpd, per /opt/iiab/iiab/vars/<OS>.yml
 | 
				
			||||||
 | 
					    state: stopped
 | 
				
			||||||
 | 
					  ignore_errors: yes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Install required and helper packages for NGINX
 | 
					- name: Install required and helper packages for NGINX
 | 
				
			||||||
  package:
 | 
					  package:
 | 
				
			||||||
    name: "{{ item }}"
 | 
					    name: "{{ item }}"
 | 
				
			||||||
| 
						 | 
					@ -21,7 +27,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add user '{{ apache_user }}' to shadow group, so it can authenticate Admin Console
 | 
					- name: Add user '{{ apache_user }}' to shadow group, so it can authenticate Admin Console
 | 
				
			||||||
  user:
 | 
					  user:
 | 
				
			||||||
    name: "{{ apache_user }}"
 | 
					    name: "{{ apache_user }}"    # www-data or apache, per /opt/iiab/iiab/vars/<OS>.yml
 | 
				
			||||||
    groups: shadow
 | 
					    groups: shadow
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Remove NGINX default config /etc/nginx/sites-enabled/default
 | 
					- name: Remove NGINX default config /etc/nginx/sites-enabled/default
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue