Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Mohamed Alibi
ansible-examples
Commits
746d246b
Commit
746d246b
authored
Sep 27, 2016
by
Dave Johnson
Browse files
Moved php, etc. installation from the web role to the base-apache role
parent
5fbc7dda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
lamp_haproxy/roles/base-apache/tasks/main.yml
lamp_haproxy/roles/base-apache/tasks/main.yml
+7
-0
lamp_haproxy/roles/web/tasks/main.yml
lamp_haproxy/roles/web/tasks/main.yml
+0
-13
No files found.
lamp_haproxy/roles/base-apache/tasks/main.yml
View file @
746d246b
...
...
@@ -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
lamp_haproxy/roles/web/tasks/main.yml
View file @
746d246b
---
# 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/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment