Docker host and docker registry

This commit is contained in:
2016-12-28 13:13:35 -05:00
parent a519e04791
commit 96087c2295
23 changed files with 361 additions and 27 deletions

View File

@@ -0,0 +1,31 @@
---
# tasks/main.yml
# define tasks here
# install packages
- name: Ensure dependencies are installed.
apt: pkg={{ item }} state=installed
with_items:
- php5-fpm
- php5-curl
# phalcon
- apt_repository: repo='ppa:phalcon/stable' state=present
- apt: pkg=php5-phalcon state=installed update_cache=yes
# config
- name: php.ini setup
lineinfile: dest=/etc/php5/fpm/php.ini line='{{ item.line }}' regexp='{{ item.regexp }}'
with_items:
- { "line":"cgi.fix_pathinfo=0", "regexp":";?cgi.fix_pathinfo=" }
notify:
- restart php
- name: pool.d/www.conf setup
lineinfile: dest=/etc/php5/fpm/pool.d/www.conf line='{{ item.line }}' regexp='{{ item.regexp }}'
with_items:
- { "line":"listen = /var/run/php5-fpm.sock", "regexp":";?listen =" }
notify:
- restart php