first commit

This commit is contained in:
xpk
2019-01-16 00:00:44 +08:00
commit 97f6a2b73d
5 changed files with 629 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
- name: Install EPEL repo
yum:
name: epel-release
state: present
- name: Install IUS repo
yum:
name: https://centos7.iuscommunity.org/ius-release.rpm
state: present
- name: Install packages
yum:
name: "{{item}}"
state: present
with_items:
- httpd24u
- mariadb-server
- mariadb-devel
- php72u-mysqlnd
- php72u-xml
- php72u-json
- php72u-imap
- mod_php72u
- name: Enable services
service:
name: "{{item}}"
state: started
enabled: yes
with_items:
- httpd
- mariadb