-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconverge.yml
89 lines (89 loc) · 2.94 KB
/
converge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
- name: Converge
hosts: instance
become: true
pre_tasks:
- name: Create project groups
ansible.builtin.group:
name: "test_wpapp"
state: present
- name: Create project app user test_wpapp
ansible.builtin.user:
name: "test_wpapp"
password: "*"
home: "/test_wp/.app"
createhome: true
group: "test_wpapp"
append: true
tasks:
- name: Include php versions role
ansible.builtin.include_role:
name: geerlingguy.php-versions
vars:
php_version: "8.2"
- name: Include php role
ansible.builtin.include_role:
name: geerlingguy.php
vars:
php_version: "8.2"
php_install_recommends: false
php_enable_php_fpm: true
php_webserver_daemon: "nginx"
php_date_timezone: "Europe/Paris"
php_expose_php: false
php_fpm_pool_user: test_wpapp
php_fpm_pool_group: test_wpapp
- name: Include nginx role
ansible.builtin.include_role:
name: geerlingguy.nginx
vars:
nginx_remove_default_vhost: true
nginx_worker_processes: "{{ ansible_processor_vcpus|default(ansible_processor_count) }}"
nginx_vhosts:
- listen: "80"
server_name: "localhost"
index: "/"
extra_parameters: |
root /test_wp/project_root/www/public;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
location ~ \.php$ {
return 404;
}
- name: Include steamengine role
ansible.builtin.include_role:
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
vars:
steamengine_project_name: test_wp
steamengine_project_type: wp
steamengine_build_url: https://delivery.steamulo.org/SteamEngineV2_tests/wordpress-test.zip
steamengine_build_checksum: sha1:7e5b076696bbbbdbb57130697ddf64de1cda754c
steamengine_project_configuration:
DB_NAME: "test_wp"
DB_USER: "test_wpapp"
DB_PASSWORD: "dev"
DB_HOST: "localhost"
WP_ENV: development
WP_HOME: http://test.localhost
WP_SITEURL: ${steamengine_project_root_path}/wp
WP_USE_CACHE: "false"
AUTH_KEY: ""
SECURE_AUTH_KEY: ""
LOGGED_IN_KEY: ""
NONCE_KEY: ""
AUTH_SALT: ""
SECURE_AUTH_SALT: ""
LOGGED_IN_SALT: ""
NONCE_SALT: ""
FORCE_SSL_LOGIN: "false"
FORCE_SSL_ADMIN: "false"
DB_PREFIX: wptest_