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: install:
- sudo pip install "ansible-core$ANSIBLE_VERSION" - sudo pip install "ansible-core$ANSIBLE_VERSION"
- sudo pip install ansible-lint - sudo pip install ansible-lint
- ansible-galaxy collection install community.general
script: script:
- VAGRANT_DEFAULT_PROVIDER=docker vagrant up $PLATFORM - VAGRANT_DEFAULT_PROVIDER=docker vagrant up $PLATFORM

View File

@ -25,7 +25,9 @@ Links:
Requirements 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 FreeBSD limitations
------------------- -------------------

View File

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

View File

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

View File

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

View File

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