Fix pkgng calls

new_release
Emilien Mantel 2021-09-01 09:33:16 +02:00
parent a6e75032a5
commit 6881f70517
6 changed files with 10 additions and 7 deletions

View File

@ -33,6 +33,7 @@ before_install:
install:
- sudo pip install "ansible-core$ANSIBLE_VERSION"
- sudo pip install ansible-lint
- ansible-galaxy collection install community.general
script:
- VAGRANT_DEFAULT_PROVIDER=docker vagrant up $PLATFORM

View File

@ -25,7 +25,9 @@ Links:
Requirements
------------
If you need PHP-FPM, you must install a webserver with FastCGI support. You can use my [nginx role](https://github.com/HanXHX/ansible-nginx).
- Ansible >= 2.11
- Collections: [community.general](https://galaxy.ansible.com/community/general)
- If you need PHP-FPM, you must install a webserver with FastCGI support. You can use my [nginx role](https://github.com/HanXHX/ansible-nginx).
FreeBSD limitations
-------------------

View File

@ -71,7 +71,7 @@
when: ansible_os_family == 'Debian'
- name: PKGNG | Install PHP packages
ansible.builtin.pkgng:
community.general.pkgng:
name: "{{ php_packages + php_extra_packages | flatten | join(',') }}"
notify: restart php-fpm
when: ansible_os_family == 'FreeBSD'

View File

@ -15,11 +15,11 @@
- block:
- name: PKGNG | Install APCu
ansible.builtin.pkgng:
community.general.pkgng:
name: "php{{ php_version | replace('.', '') }}-pecl-APCu"
- name: PKGNG | Install Opcache
ansible.builtin.pkgng:
community.general.pkgng:
name: "{{ php_package_prefix }}opcache"
when: ansible_os_family == 'FreeBSD'

View File

@ -11,7 +11,7 @@
when: ansible_os_family == 'Debian'
- name: PKGNG | Install xdebug
ansible.builtin.pkgng:
community.general.pkgng:
name: "{{ php_xdebug_package }}"
when: ansible_os_family == 'FreeBSD' and php_xdebug_package is defined
@ -34,7 +34,7 @@
when: ansible_os_family == 'Debian'
- name: PKGNG | Uninstall xdebug
ansible.builtin.pkgng:
community.general.pkgng:
name: "{{ php_xdebug_package }}"
state: absent
when: ansible_os_family == 'FreeBSD'

View File

@ -6,5 +6,5 @@
php_xdebug_package: 'php72-pecl-xdebug-2.6.1'
- name: PKGNG | Install packages
ansible.builtin.pkgng:
community.general.pkgng:
name: ['curl', 'nginx']