From 780f941a9df51076bb4f2e84c8119c95b7c641f4 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 2 May 2017 11:02:24 +0200 Subject: [PATCH] Make phpenmod and phpdismod available as symbolic link in PHP 5.3 environments --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 46c1106..f6616e9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,6 +20,16 @@ - 'fpm' when: php_version|default("5.5") == "7" + - name: "Link PhpEnMod for PHP 5.3" + file: + dest: '/usr/local/bin/php{{ item }}' + src: '/usr/sbin/php5{{ item }}' + state: 'link' + with_items: + - 'enmod' + - 'dismod' + when: php_version|default("5.5") == "5.3" + - name: 'PHP | Remember that this role had been run' set_fact: role_php_completed=true tags: always -- GitLab