You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
457 B
16 lines
457 B
---
|
|
|
|
# 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/
|
|
|