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
# Incomplete
mariadb-server
apache2
git
php7:
$ sudo -s
# echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
# echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
wget https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
apt-get install php7-*
poistettu php70-snmp
---
- hosts: all
become: true
tasks:
- apt_repository:
repo: deb http://packages.dotdeb.org jessie all
state: present
- apt_repository:
repo: deb-src http://packages.dotdeb.org jessie all
state: present
- apt_key:
url: https://www.dotdeb.org/dotdeb.gpg
state: present
- name: Ensure apt has updated cache
apt: update_cache=yes
- name: Ensure Apache2 is installed
apt: name=apache2 state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment