fix task naming
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
---
|
||||
# - name: Add Sury PHP GPG apt key
|
||||
# apt_key:
|
||||
# url: https://packages.sury.org/php/apt.gpg
|
||||
# keyring: /usr/share/keyrings/deb.sury.org-php.gpg
|
||||
# state: present
|
||||
|
||||
- name: Add Sury PHP Repository
|
||||
command: add-apt-repository -y ppa:ondrej/php
|
||||
args:
|
||||
creates: "/etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list"
|
||||
creates: "/etc/apt/sources.list.d/ondrej-ubuntu-php-{{ ansible_distribution_release }}.sources"
|
||||
when: php_version is defined # add repo when version is specified, otherwise use default repo
|
||||
|
||||
- name: Uninstall old PHP version
|
||||
@@ -12,6 +18,10 @@
|
||||
purge: true
|
||||
when: php_old_version is defined # uninstall when old version is specified
|
||||
|
||||
# - name: Print php_modules list
|
||||
# debug:
|
||||
# msg: "{{ ['php' + php_version] | product(php_modules) | map('join', '-') | list }}"
|
||||
|
||||
- name: "Install custom PHP modules {{ php_modules }}"
|
||||
apt:
|
||||
name: "{{ ['php' + php_version] | product(php_modules) | map('join', '-') | list }}"
|
||||
|
||||
Reference in New Issue
Block a user