We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2422b commit b5ecd15Copy full SHA for b5ecd15
roles/vhosts/tasks/main.yml
@@ -8,7 +8,7 @@
8
with_items: "{{ vhosts }}"
9
10
- name: add vhosts
11
- shell: sudo nine-manage-vhosts virtual-host create "{{ item.servername | quote }}" --webroot="{{ item.documentroot | quote }}" --template="{{ item.template | default('default') | quote }}" --template-variable PHP_VERSION=7.4
+ shell: sudo nine-manage-vhosts virtual-host create "{{ item.servername | quote }}" --webroot="{{ item.documentroot | quote }}" --template="{{ item.template | default('default') | quote }}" --template-variable PHP_VERSION={{ item.php_version | default('7.4') | quote }}
12
args:
13
creates: "/etc/apache2/user-vhosts/{{ item.servername }}.conf"
14
0 commit comments