This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
wordpress-nginx-rhel7 linted and updated #324
Open
RayJin2000
wants to merge
3
commits into
ansible:master
Choose a base branch
from
RayJin2000:feature/wordepress-nginx
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
29 changes: 0 additions & 29 deletions
29
wordpress-nginx_rhel7/roles/common/files/RPM-GPG-KEY-EPEL-7
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
wordpress-nginx_rhel7/roles/common/files/RPM-GPG-KEY-NGINX
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
[nginx] | ||
name=Nginx repo - $basearch | ||
baseurl=http://nginx.org/packages/centos/7/$basearch | ||
failovermethod=priority | ||
[nginx-stable] | ||
name=nginx stable repo | ||
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ | ||
gpgcheck=1 | ||
enabled=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NGINX | ||
gpgkey=https://nginx.org/keys/nginx_signing.key | ||
module_hotfixes=true | ||
|
||
[nginx-mainline] | ||
name=nginx mainline repo | ||
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ | ||
gpgcheck=1 | ||
enabled=0 | ||
gpgkey=https://nginx.org/keys/nginx_signing.key | ||
module_hotfixes=true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,44 @@ | ||
--- | ||
- name: Copy the NGINX repository definition | ||
copy: src=nginx.repo dest=/etc/yum.repos.d/ | ||
ansible.builtin.copy: | ||
src: nginx.repo | ||
dest: /etc/yum.repos.d/ | ||
owner: root | ||
group: root | ||
mode: u=rw,g=r,o=r | ||
|
||
- name: Copy the EPEL repository definition | ||
copy: src=epel.repo dest=/etc/yum.repos.d/ | ||
- name: Install the EPEL repository definition | ||
ansible.builtin.yum: | ||
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" | ||
state: present | ||
|
||
- name: Copy the REMI repository definition | ||
copy: src=remi.repo dest=/etc/yum.repos.d/ | ||
- name: Install the REMI repository definition | ||
ansible.builtin.yum: | ||
name: https://rpms.remirepo.net/enterprise/remi-release-7.rpm | ||
state: present | ||
|
||
- name: Create the GPG key for NGINX | ||
copy: src=RPM-GPG-KEY-NGINX dest=/etc/pki/rpm-gpg | ||
ansible.builtin.rpm_key: | ||
state: present | ||
key: https://nginx.org/keys/nginx_signing.key | ||
|
||
- name: Create the GPG key for EPEL | ||
copy: src=RPM-GPG-KEY-EPEL-7 dest=/etc/pki/rpm-gpg | ||
- name: Create the GPG key for EPEL 7 | ||
ansible.builtin.rpm_key: | ||
state: present | ||
key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 | ||
|
||
- name: Create the GPG key for Remi Repo EL 7 | ||
ansible.builtin.rpm_key: | ||
state: present | ||
key: https://rpms.remirepo.net/enterprise/7/RPM-GPG-KEY-remi | ||
|
||
- name: Create the GPG key for REMI | ||
copy: src=RPM-GPG-KEY-remi dest=/etc/pki/rpm-gpg | ||
|
||
- name: Install Firewalld | ||
yum: name=firewalld state=present | ||
ansible.builtin.yum: | ||
name: firewalld | ||
state: present | ||
|
||
- name: Firewalld service state | ||
service: name=firewalld state=started enabled=yes | ||
ansible.builtin.service: | ||
name: firewalld | ||
state: started | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
--- | ||
# Handler to handle DB tier notifications | ||
|
||
- name: restart mariadb | ||
service: name=mariadb state=restarted | ||
- name: Restart mariadb | ||
ansible.builtin.service: | ||
name: mariadb | ||
state: restarted | ||
listen: restart mariadb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,49 @@ | ||
--- | ||
# This playbook will install MariaDB and create db user and give permissions. | ||
|
||
- name: Install MariaDB package | ||
yum: name={{ item }} state=installed | ||
with_items: | ||
- mariadb-server | ||
- MySQL-python | ||
- libselinux-python | ||
- libsemanage-python | ||
ansible.builtin.yum: | ||
name: "{{ mariadb_packages }}" | ||
state: installed | ||
vars: | ||
mariadb_packages: | ||
- mariadb-server | ||
- MySQL-python | ||
- libselinux-python | ||
- libsemanage-python | ||
|
||
- name: Configure SELinux to start mysql on any port | ||
seboolean: name=mysql_connect_any state=true persistent=yes | ||
ansible.posix.seboolean: | ||
name: mysql_connect_any | ||
state: true | ||
persistent: true | ||
|
||
- name: Create Mysql configuration file | ||
template: src=my.cnf.j2 dest=/etc/my.cnf | ||
ansible.builtin.template: | ||
src: my.cnf.j2 | ||
dest: /etc/my.cnf | ||
owner: root | ||
group: mysql | ||
mode: u=rw,g=r,o=r | ||
notify: | ||
- restart mariadb | ||
- restart mariadb | ||
|
||
- name: Create MariaDB log file | ||
file: path=/var/log/mysqld.log state=touch owner=mysql group=mysql mode=0775 | ||
ansible.builtin.file: | ||
path: /var/log/mysqld.log | ||
state: touch | ||
owner: mysql | ||
group: mysql | ||
mode: u=rwx,g=rwx,o=rx | ||
|
||
- name: Start MariaDB Service | ||
service: name=mariadb state=started enabled=yes | ||
ansible.builtin.service: | ||
name: mariadb | ||
state: started | ||
enabled: true | ||
|
||
- name: insert firewalld rule | ||
firewalld: port={{ mysql_port }}/tcp permanent=true state=enabled immediate=yes | ||
ignore_errors: yes | ||
- name: Insert firewalld rule | ||
ansible.posix.firewalld: | ||
port: "{{ mysql_port }}/tcp " | ||
permanent: true | ||
state: enabled | ||
immediate: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
- name: restart nginx | ||
service: name=nginx state=restarted enabled=yes | ||
- name: Restart nginx | ||
ansible.builtin.service: | ||
name: nginx | ||
state: restarted | ||
enabled: true | ||
listen: restart nginx |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove this change, because it wasn't planed. But i although would like to remove the whole wordpress-nginx_rhel6 folder, because its totally outdated.