Commit 746d246b authored by Dave Johnson's avatar Dave Johnson
Browse files

Moved php, etc. installation from the web role to the base-apache role

parent 5fbc7dda
......@@ -5,6 +5,13 @@
yum: name={{ item }} state=present
with_items:
- httpd
- php
- php-mysql
- git
- name: Configure SELinux to allow httpd to connect to remote database
seboolean: name=httpd_can_network_connect_db state=true persistent=yes
when: sestatus.rc != 0
- name: http service state
service: name=httpd state=started enabled=yes
---
# httpd is handled by the base-apache role upstream
- name: Install php and git
yum: name={{ item }} state=present
with_items:
- php
- php-mysql
- git
- name: Configure SELinux to allow httpd to connect to remote database
seboolean: name=httpd_can_network_connect_db state=true persistent=yes
when: sestatus.rc != 0
- name: Copy the code from repository
git: repo={{ repository }} version={{ webapp_version }} dest=/var/www/html/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment