mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 11:20:18 +01:00
Moved CentOS specific settings into it's own include file.
This commit is contained in:
parent
2b45d679d5
commit
bb834d09ed
2 changed files with 18 additions and 15 deletions
|
@ -1,18 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Copy the NGINX repository definition
|
# Setup/install tasks.
|
||||||
copy: src=nginx.repo dest=/etc/yum.repos.d/
|
- include: setup-RedHat.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
- 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
|
|
||||||
copy: src=RPM-GPG-KEY-EPEL-7 dest=/etc/pki/rpm-gpg
|
|
||||||
|
|
||||||
- name: Creates custom users
|
|
||||||
user: name=vmuser comment=DefaultUser groups=vmuser,wheel password={{ default_user_password }} shell=/bin/bash createhome=yes
|
|
||||||
user: name=www-php comment=DefaultPHPUser shell=/sbin/nologin createhome=no
|
|
||||||
|
|
||||||
- hostname: name={{ server_hostname }}
|
- hostname: name={{ server_hostname }}
|
||||||
|
|
15
lemp-rhel7/roles/common/tasks/setup-RedHat.yml
Normal file
15
lemp-rhel7/roles/common/tasks/setup-RedHat.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
- name: Copy the NGINX repository definition
|
||||||
|
copy: src=nginx.repo dest=/etc/yum.repos.d/
|
||||||
|
|
||||||
|
- 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
|
||||||
|
copy: src=RPM-GPG-KEY-EPEL-7 dest=/etc/pki/rpm-gpg
|
||||||
|
|
||||||
|
- name: Creates custom users
|
||||||
|
user: name=vmuser comment=DefaultUser groups=vmuser,wheel password={{ default_user_password }} shell=/bin/bash createhome=yes
|
||||||
|
user: name=www-php comment=DefaultPHPUser shell=/sbin/nologin createhome=no
|
Loading…
Reference in a new issue