mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	httpd/tasks/install.yml: mandate libapache2-mod-php{{ php_version }}
This commit is contained in:
		
							parent
							
								
									f152518864
								
							
						
					
					
						commit
						bdf264b906
					
				
					 1 changed files with 12 additions and 11 deletions
				
			
		|  | @ -1,23 +1,24 @@ | |||
| - name: 'Install 3 packages: apache2, php{{ php_version }}, php{{ php_version }}-curl (debian)' | ||||
| - name: 'Install 4 packages: apache2, libapache2-mod-php{{ php_version }}, php{{ php_version }}, php{{ php_version }}-curl' | ||||
|   package: | ||||
|     #name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl']    # FAILS ('u' for Unicode strings) | ||||
|     #name: ['apache2', 'php{{ php_version }}', 'php{{ php_version }}-curl']       # WORKS? | ||||
|     name: | ||||
|       - "{{ apache_service }}"    # apache2 on Debuntu | ||||
|       - "libapache2-mod-php{{ php_version }}"    # 2020-06-15: Required (e.g. for Elgg, Moodle & possibly others) now that mysql/tasks/install.yml installs "php{{ php_version }}-common" rather than the full "php{{ php_version }}" | ||||
|       - "php{{ php_version }}" | ||||
|       - "php{{ php_version }}-curl" | ||||
|     state: present | ||||
|   when: is_debian | bool | ||||
| #  when: is_debian | bool | ||||
| 
 | ||||
| - name: 'Install 2 packages: apache2, php (ubuntu)' | ||||
|   package: | ||||
|     #name: [u'apache2', u'php']    # FAILS ('u' for Unicode strings) | ||||
|     #name: ['apache2', 'php']      # WORKS | ||||
|     name: | ||||
|       - "{{ apache_service }}"    # apache2 on Debuntu | ||||
|       - php | ||||
|     state: present | ||||
|   when: is_ubuntu | bool | ||||
| # - name: 'Install 2 packages: apache2, php (ubuntu)' | ||||
| #   package: | ||||
| #     #name: [u'apache2', u'php']    # FAILS ('u' for Unicode strings) | ||||
| #     #name: ['apache2', 'php']      # WORKS | ||||
| #     name: | ||||
| #       - "{{ apache_service }}"    # apache2 on Debuntu | ||||
| #       - php | ||||
| #     state: present | ||||
| #   when: is_ubuntu | bool | ||||
| 
 | ||||
| # 2019-05-30: It's interesting that http://box.lan/admin and everything seems | ||||
| # to work even without php{{ php_version }}-sqlite3 as confirmed on Ubuntu | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue