Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit b83c169

Browse files
author
speedlight
committed
yum deprectation warnings for lamp_simple_rhel7 playbook
1 parent 7085f05 commit b83c169

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

lamp_simple_rhel7/group_vars/all

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,18 @@
44
httpd_port: 80
55
ntpserver: 192.168.1.2
66
repository: https://github.com/bennojoy/mywebapp.git
7+
8+
common_packages:
9+
- libselinux-python
10+
- libsemanage-python
11+
- firewalld
12+
13+
db_packages:
14+
- mariadb-server
15+
- MySQL-python
16+
17+
web_packages:
18+
- httpd
19+
- php
20+
- php-mysql
21+
- git

lamp_simple_rhel7/roles/common/tasks/main.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
tags: ntp
77

88
- name: Install common dependencies
9-
yum: name={{ item }} state=installed
10-
with_items:
11-
- libselinux-python
12-
- libsemanage-python
13-
- firewalld
9+
yum: name={{ common_packages }} state=installed
1410

1511
- name: Configure ntp file
1612
template: src=ntp.conf.j2 dest=/etc/ntp.conf

lamp_simple_rhel7/roles/db/tasks/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
# This playbook will install MariaDB and create db user and give permissions.
33

44
- name: Install MariaDB package
5-
yum: name={{ item }} state=installed
6-
with_items:
7-
- mariadb-server
8-
- MySQL-python
5+
yum: name={{ db_packages }} state=installed
96

107
- name: Configure SELinux to start mysql on any port
118
seboolean: name=mysql_connect_any state=true persistent=yes

lamp_simple_rhel7/roles/web/tasks/install_httpd.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22
# These tasks install http and the php modules.
33

44
- name: Install httpd and php
5-
yum: name={{ item }} state=present
6-
with_items:
7-
- httpd
8-
- php
9-
- php-mysql
10-
11-
- name: Install web role specific dependencies
12-
yum: name={{ item }} state=installed
13-
with_items:
14-
- git
5+
yum: name={{ web_packages }} state=present
156

167
- name: Start firewalld
178
service: name=firewalld state=started enabled=yes

0 commit comments

Comments
 (0)