Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tumainimosha/1829ad83ed96a11583909aa20112f4d3 to your computer and use it in GitHub Desktop.
Save tumainimosha/1829ad83ed96a11583909aa20112f4d3 to your computer and use it in GitHub Desktop.
---
- name: install PHP 7, Nginx and PHP-FPM
hosts: appBackend
become: yes
vars:
- redis_bind: 127.0.0.1
roles:
- bas-ansible-roles-collection.nginx
- bas-ansible-roles-collection.php7
- bas-ansible-roles-collection.php7-nginx
- DavidWittman.redis
- name: install PHP7 extensions
hosts: appBackend
become: yes
tasks:
- name: php7 extensions
apt: pkg={{item}} state=present update_cache=yes cache_valid_time=604800
with_items:
- php7.2-mbstring
- php7.2-curl
- php7.2-xml
- php7.2-zip
- php7.2-pgsql
- php7.2-mysql
- unzip
- php7.2-sqlite3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment