This repository was archived by the owner on May 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-19
lines changed Expand file tree Collapse file tree 4 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 44httpd_port: 80
55ntpserver: 192.168.1.2
66repository: 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments