diff options
Diffstat (limited to 'lamp_haproxy/aws/roles/web/tasks/main.yml')
-rw-r--r-- | lamp_haproxy/aws/roles/web/tasks/main.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lamp_haproxy/aws/roles/web/tasks/main.yml b/lamp_haproxy/aws/roles/web/tasks/main.yml new file mode 100644 index 0000000..7225312 --- /dev/null +++ b/lamp_haproxy/aws/roles/web/tasks/main.yml @@ -0,0 +1,16 @@ +--- + +# 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/ |