Skip to content

Instantly share code, notes, and snippets.

@aeosys
Last active July 9, 2017 17:14
Show Gist options
  • Save aeosys/9ea58d042b13ae12e07a1c993d1832b4 to your computer and use it in GitHub Desktop.
Save aeosys/9ea58d042b13ae12e07a1c993d1832b4 to your computer and use it in GitHub Desktop.
PHP7 dev server for Symfony
---
- hosts: all
become: true
tasks:
- apt_repository: repo={{ item }} state=present
with_items:
- deb http://packages.dotdeb.org jessie all
- deb-src http://packages.dotdeb.org jessie all
- apt_key:
url: https://www.dotdeb.org/dotdeb.gpg
state: present
- name: Ensure apt has updated cache
apt: update_cache=yes
- name: Install packages
apt: name={{ item }} state=latest
with_items:
- git
- apache2
- mariadb-server
- python-mysqldb
- name: Create db for symfony
mysql_db: name=symfony state=present
- name: Install PHP7
apt: name={{ item }} state=latest
with_items:
- php7.0
- php7.0-apcu
- php7.0-bz2
- php7.0-curl
- php7.0-cli
- php7.0-dba
- php7.0-dbg
- php7.0-imap
- php7.0-intl
- php7.0-json
- php7.0-mbstring
- php7.0-mcrypt
- php7.0-memcached
- php7.0-mysql
- php7.0-odbc
- php7.0-soap
- php7.0-ssh2
- php7.0-xdebug
- php7.0-xml
- php7.0-zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment