Rename roles for apache-php and apache-openidc
This commit is contained in:
parent
f33a0b8a21
commit
d686ade847
3 changed files with 1210 additions and 0 deletions
16
roles/apache-openidc/tasks/main.yml
Normal file
16
roles/apache-openidc/tasks/main.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- name: Enable testing repository
|
||||
lineinfile:
|
||||
path: /etc/apk/repositories
|
||||
line: "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing"
|
||||
|
||||
- name: Create config file
|
||||
template:
|
||||
src: mod-auth-openidc.conf
|
||||
dest: /etc/apache2/conf.d/mod-auth-openidc.conf
|
||||
|
||||
- name: Install Apache OIDC module
|
||||
apk:
|
||||
name: apache-mod-auth-openidc@testing
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
1174
roles/apache-openidc/templates/mod-auth-openidc.conf
Normal file
1174
roles/apache-openidc/templates/mod-auth-openidc.conf
Normal file
File diff suppressed because it is too large
Load diff
20
roles/apache-php/tasks/main.yml
Normal file
20
roles/apache-php/tasks/main.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
- name: Install standard expected packages
|
||||
package:
|
||||
name: acl,php,php-apache2,php-session,php-iconv
|
||||
|
||||
- name: Get installed packages
|
||||
package_facts:
|
||||
|
||||
- name: Set PHP version
|
||||
set_fact:
|
||||
php_version: "{{ ansible_facts.packages | select('match', '^php[0-9]+$') | first | replace('php', '') }}"
|
||||
|
||||
- name: Set PHP settings
|
||||
lineinfile:
|
||||
path: '/etc/php{{ php_version }}/php.ini'
|
||||
regexp: '^{{ item.key }}\s*='
|
||||
line: '{{ item.key }} = {{ item.value }}'
|
||||
loop:
|
||||
- key: upload_max_filesize
|
||||
value: 200M
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue