Skip to content

Commit

Permalink
Merge pull request #270 from juius-b/fix/name-php-packages
Browse files Browse the repository at this point in the history
Pass names of PHP packages directly to package module
  • Loading branch information
wiktor2200 committed May 19, 2023
2 parents ae714a6 + fda87c2 commit 1713d21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ GitHub.sublime-settings
# test credentials
/molecule/default/nextcloud_instances
**/__pycache__/

# Environments
.venv
25 changes: 11 additions & 14 deletions roles/install_nextcloud/tasks/php_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,24 @@

- name: "[PHP] - Required and recommended packages are installed."
ansible.builtin.package:
name: "{{ item }}"
name:
- imagemagick
- smbclient
- "php{{ php_ver }}-fpm"
- "php{{ php_ver }}-gd"
- "php{{ php_ver }}-ldap"
- "php{{ php_ver }}-imap"
- "php{{ php_ver }}-curl"
- "php{{ php_ver }}-intl"
- "php{{ php_ver }}-bz2"
state: present
with_items:
- imagemagick
- smbclient
- "php{{ php_ver }}-fpm"
- "php{{ php_ver }}-gd"
- "php{{ php_ver }}-ldap"
- "php{{ php_ver }}-imap"
- "php{{ php_ver }}-curl"
- "php{{ php_ver }}-intl"
- "php{{ php_ver }}-bz2"
notify:
- Start php-fpm

- name: "[PHP] - Extra packages are installed."
ansible.builtin.package:
name: "{{ item }}"
name: "{{ php_pkg_spe }}"
state: present
with_items:
- "{{ php_pkg_spe }}"

- name: "[PHP] - Database client - MySQL."
ansible.builtin.package:
Expand Down

0 comments on commit 1713d21

Please sign in to comment.