mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	roles/pbx/tasks/apache.yml: Tidy up Ansible output
This commit is contained in:
		
							parent
							
								
									f7f42b5d91
								
							
						
					
					
						commit
						1e6f54727a
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,18 +1,18 @@
 | 
			
		|||
# Must happen before install of Apache, or it'll collide with NGINX port 80.
 | 
			
		||||
# 2021-08-09: Used to be done by roles/nginx/tasks/install.yml
 | 
			
		||||
- name: "Install from template: /etc/{{ apache_service }}/ports.conf containing 'Listen {{ pbx_http_port }}'"
 | 
			
		||||
- name: "FreePBX - Install from template: /etc/{{ apache_service }}/ports.conf containing 'Listen {{ pbx_http_port }}'"
 | 
			
		||||
  template:
 | 
			
		||||
    src: ports.conf
 | 
			
		||||
    dest: /etc/{{ apache_service }}/
 | 
			
		||||
 | 
			
		||||
- name: "FreePBX - Install Apache packages: {{ apache_service }}, libapache2-mod-php, libapache2-mpm-itk - if not pbx_try_nginx"
 | 
			
		||||
- name: "FreePBX - Install Apache packages: {{ apache_service }}, libapache2-mod-php, libapache2-mpm-itk"
 | 
			
		||||
  package:
 | 
			
		||||
    name:
 | 
			
		||||
      - "{{ apache_service }}"    # 2021-08-07: Install apache2 directly, as we prepare to deprecate roles/httpd
 | 
			
		||||
      - libapache2-mod-php        # NOTE duplication: roles/httpd/tasks.install.yml installed libapache2-mod-php{{ php_version }} ostensibly for "Elgg, Moodle, etc"
 | 
			
		||||
      - libapache2-mpm-itk        # To serve FreePBX through a VirtualHost as asterisk user (#2914: Is this possible via NGINX?)
 | 
			
		||||
 | 
			
		||||
- name: 'Enable Apache module, as with "a2enmod" command: rewrite'
 | 
			
		||||
- name: 'FreePBX - Enable Apache module, as with "a2enmod" command: rewrite'
 | 
			
		||||
  apache2_module:
 | 
			
		||||
    name: rewrite
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -30,7 +30,7 @@
 | 
			
		|||
# 2021-08-08: Security risks?  But official install doc recommends this:
 | 
			
		||||
# https://wiki.freepbx.org/display/FOP/Installing+FreePBX+16+on+Debian+10.9
 | 
			
		||||
# (lineinfile doesn't quite do the job, as all instances are replaced)
 | 
			
		||||
- name: Run "sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf"
 | 
			
		||||
- name: FreePBX - Run "sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf"
 | 
			
		||||
  command: sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
 | 
			
		||||
 | 
			
		||||
- name: FreePBX - Install /etc/{{ apache_service }}/sites-available/freepbx.conf from template ({{ apache_user }}:{{ apache_user }}, 0644 by default)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue