We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6690707 commit 1d6d28eCopy full SHA for 1d6d28e
provision-contest/ansible/roles/domserver/defaults/main.yml
@@ -0,0 +1,4 @@
1
+DOMSERVER_PACKAGES:
2
+ - nginx
3
+ - php-fpm
4
+ - php-intl
provision-contest/ansible/roles/domserver/tasks/main.yml
@@ -34,10 +34,7 @@
34
- name: Install required packages
35
apt:
36
state: present
37
- pkg:
38
- - nginx
39
- - php-fpm
40
- - php-intl
+ pkg: "{{ DOMSERVER_PACKAGES }}"
41
42
- name: Set PHP timezone for FPM
43
lineinfile:
@@ -51,9 +48,7 @@
51
48
command: phpenmod {{ item }}
52
49
args:
53
50
creates: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/20-{{ item }}.ini"
54
- loop:
55
- - zip
56
- - intl
+ loop: "{{ DOMSERVER_PACKAGES | map('regex_search', 'php-') | select() }}"
57
notify: Restart PHP FPM
58
59
- name: Add domjudge nginx conf
0 commit comments