]> git.somenet.org - root/pub/somesible.git/blob - roles/service/mediawiki-no-install/tasks/main.yml
[roles/util] ----- meta ----- No dependencies
[root/pub/somesible.git] / roles / service / mediawiki-no-install / tasks / main.yml
1 #####################################
2 ### someone"s ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
6 #
7 ---
8 - name: include vars_nginx_vhost_custom
9   include_vars:
10     file: "{{item}}"
11     name: vars_nginx_vhost_custom
12   with_first_found:
13     - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/{{mediawiki_domain}}-vars_nginx_vhost_custom.yml"
14     - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/{{mediawiki_domain}}-vars_nginx_vhost_custom.yml"
15     - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/{{mediawiki_domain}}-vars_nginx_vhost_custom.yml"
16     - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/vars_nginx_vhost_custom.yml"
17     - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/vars_nginx_vhost_custom.yml"
18     - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/vars_nginx_vhost_custom.yml"
19     - "default/vars_nginx_vhost_custom.yml"
20
21
22 - name: configure vhost
23   include_role:
24     name: server/nginx/vhost-unified
25   vars:
26     vhost_type: "php"
27     vhost_name: "{{mediawiki_domain}}"
28     vhost_php_custom: ["bzip2", "php-apcu", "php8.2-pgsql", "php8.2-curl", "php8.2-gd", "php8.2-intl", "php-imagick", "php8.2-mbstring", "php8.2-mysql", "php8.2-xml", "php8.2-zip"]
29     vhost_fix_perms: False
30     vhost_custom:
31       vhost_custom_pre_server: "{{vars_nginx_vhost_custom.vhost_custom_pre_server}}"
32       vhost_custom: "{{vars_nginx_vhost_custom.vhost_custom}}"