Skip to content

Commit

Permalink
Revert "chore(php): Tool assistant use Ansible 2.8 shortcut update"
Browse files Browse the repository at this point in the history
This reverts commit 3c1bcbf.

The second part of the previous revert, this should fix the 'undefined
variable' error during the 'php' role execution on a fresh host.
  • Loading branch information
drybjed committed Jan 16, 2023
1 parent 7fdfd39 commit 7b8e24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/roles/php/tasks/main_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
ansible.builtin.set_fact:
php__version: '{{ ansible_local.php.version | d(php__register_version.stdout) }}'
php__long_version: '{{ ansible_local.php.long_version
if (ansible_local.php.long_version | d() != "(none)")
if (ansible_local | d() and ansible_local.php | d() and
ansible_local.php.long_version | d() != "(none)")
else php__register_long_version.stdout }}'
tags: [ 'role::php:pools', 'role::php:config' ]

Expand Down

0 comments on commit 7b8e24d

Please sign in to comment.