Skip to content
Snippets Groups Projects
Commit a60ee2dc authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Name set_fact tasks

parent 9830b712
No related branches found
No related tags found
No related merge requests found
......@@ -159,11 +159,13 @@
when: (php_version_main|default('7') == '7') and (jailkit is not defined or not jailkit) and (php_fpm)
- block:
- set_fact:
- name: Set facts for PHP 7
set_fact:
phpLogRotatePrefix: '{{php_version|default("7.0")}}'
phpLibPrefix: ''
when: php_version_main|default('7') == '7'
- set_fact:
- name: Set facts for PHP 5
set_fact:
phpLogRotatePrefix: '5'
phpLibPrefix: '5'
when: php_version_main|default('7') != '7'
......
......@@ -2,12 +2,15 @@
# file: roles/php/tasks/variables.yml
- block:
- set_fact:
- name: Set default facts
set_fact:
phpFpmService: php5-fpm
- set_fact:
- name: Set facts for PHP 5
set_fact:
phpFpmService: php-fpm
when: php_version_main|default('7') == '5'
- set_fact:
- name: Set facts for PHP 7
set_fact:
phpFpmService: php{{php_version|default("7.0")}}-fpm
when: php_version_main|default('7') == '7'
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment