2015-08-27 20:31:45 +02:00
|
|
|
---
|
|
|
|
- name: Copy the NGINX repository definition
|
|
|
|
copy: src=nginx.repo dest=/etc/yum.repos.d/
|
2016-06-12 05:53:40 +02:00
|
|
|
|
2015-08-27 20:31:45 +02:00
|
|
|
- name: Copy the EPEL repository definition
|
|
|
|
copy: src=epel.repo dest=/etc/yum.repos.d/
|
|
|
|
|
|
|
|
- name: Create the GPG key for NGINX
|
|
|
|
copy: src=RPM-GPG-KEY-NGINX dest=/etc/pki/rpm-gpg
|
|
|
|
|
|
|
|
- name: Create the GPG key for EPEL
|
2016-06-12 05:53:40 +02:00
|
|
|
copy: src=RPM-GPG-KEY-EPEL-7 dest=/etc/pki/rpm-gpg
|
|
|
|
|
2016-06-12 06:24:57 +02:00
|
|
|
- name: Creates custom users
|
2016-06-12 05:55:46 +02:00
|
|
|
user: name=vmuser comment=DefaultUser groups=vmuser,wheel password={{ default_user_password }} shell=/bin/bash createhome=yes
|
2016-06-12 06:25:54 +02:00
|
|
|
user: name=www-php comment=DefaultPHPUser shell=/sbin/nologin createhome=no
|
2016-06-13 05:36:41 +02:00
|
|
|
|
2016-06-13 05:49:56 +02:00
|
|
|
- hostname: name={{ server_hostname }}
|