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
efa1eba7
Commit
efa1eba7
authored
Jul 21, 2016
by
Dave Johnson
Committed by
GitHub
Jul 21, 2016
Browse files
Merge pull request #146 from boyvanduuren/lamp_simple_rhel7
Fixes (#145) missing package + package install order
parents
37d447de
6a89842a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
lamp_simple_rhel7/roles/common/tasks/main.yml
lamp_simple_rhel7/roles/common/tasks/main.yml
+7
-0
lamp_simple_rhel7/roles/db/tasks/main.yml
lamp_simple_rhel7/roles/db/tasks/main.yml
+3
-2
lamp_simple_rhel7/roles/web/tasks/install_httpd.yml
lamp_simple_rhel7/roles/web/tasks/install_httpd.yml
+8
-3
No files found.
lamp_simple_rhel7/roles/common/tasks/main.yml
View file @
efa1eba7
...
...
@@ -5,6 +5,13 @@
yum
:
name=ntp state=present
tags
:
ntp
-
name
:
Install common dependencies
yum
:
name={{ item }} state=installed
with_items
:
-
libselinux-python
-
libsemanage-python
-
firewalld
-
name
:
Configure ntp file
template
:
src=ntp.conf.j2 dest=/etc/ntp.conf
tags
:
ntp
...
...
lamp_simple_rhel7/roles/db/tasks/main.yml
View file @
efa1eba7
...
...
@@ -6,8 +6,6 @@
with_items
:
-
mariadb-server
-
MySQL-python
-
libselinux-python
-
libsemanage-python
-
name
:
Configure SELinux to start mysql on any port
seboolean
:
name=mysql_connect_any state=true persistent=yes
...
...
@@ -26,6 +24,9 @@
-
name
:
Start MariaDB Service
service
:
name=mariadb state=started enabled=yes
-
name
:
Start firewalld
service
:
name=firewalld state=started enabled=yes
-
name
:
insert firewalld rule
firewalld
:
port={{ mysql_port }}/tcp permanent=true state=enabled immediate=yes
...
...
lamp_simple_rhel7/roles/web/tasks/install_httpd.yml
View file @
efa1eba7
---
# These tasks install http and the php modules.
-
name
:
Install http and php
etc
-
name
:
Install http
d
and php
yum
:
name={{ item }} state=present
with_items
:
-
httpd
-
php
-
php-mysql
-
name
:
Install web role specific dependencies
yum
:
name={{ item }} state=installed
with_items
:
-
git
-
libsemanage-python
-
libselinux-python
-
name
:
Start firewalld
service
:
name=firewalld state=started enabled=yes
-
name
:
insert firewalld rule for httpd
firewalld
:
port={{ httpd_port }}/tcp permanent=true state=enabled immediate=yes
...
...
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