-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some small additional fixes
- Loading branch information
Showing
17 changed files
with
118 additions
and
25 deletions.
There are no files selected for viewing
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
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
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,10 +1,11 @@ | ||
# file: roles/playbook.yml | ||
# file: ansible/playbook.yml | ||
--- | ||
- hosts: all | ||
|
||
roles: | ||
- init | ||
- httpd | ||
- php56 | ||
#- php56 | ||
- php70 | ||
- mysql | ||
- phpmyadmin |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# file: roles/httpd/handlers/main.yml | ||
--- | ||
|
||
- name: restart httpd | ||
service: name=httpd state=restarted |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# file: roles/php56/handlers/main.yml | ||
--- | ||
|
||
- name: restart iptables | ||
service: name=iptables state=restarted |
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
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,4 +1,4 @@ | ||
# file: roles/php/defaults/main.yml | ||
# file: roles/php56/defaults/main.yml | ||
--- | ||
|
||
composer_path: /usr/local/bin/composer |
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,8 +1,5 @@ | ||
# file: roles/php/handlers/main.yml | ||
# file: roles/php56/handlers/main.yml | ||
--- | ||
|
||
- name: restart iptables | ||
service: name=iptables state=restarted | ||
|
||
- name: restart httpd | ||
service: name=httpd state=restarted | ||
|
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
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
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,4 +1,4 @@ | ||
# file: roles/php/tasks/main.yml | ||
# file: roles/php56/tasks/main.yml | ||
--- | ||
|
||
- include: install.yml | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# file: roles/php70/defaults/main.yml | ||
--- | ||
|
||
composer_path: /usr/local/bin/composer |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# file: roles/php70/handlers/main.yml | ||
--- | ||
|
||
- name: restart iptables | ||
service: name=iptables state=restarted | ||
|
||
- name: restart httpd | ||
service: name=httpd state=restarted |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# file: roles/php70/tasks/configure.yml | ||
|
||
- name: Install Composer globally | ||
shell: curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv -f composer.phar {{ composer_path }} creates={{ composer_path }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# file: roles/php70/tasks/install.yml | ||
|
||
- name: Install epel from remote repo | ||
yum: name=https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm state=present | ||
|
||
- name: Install remi from remote repo | ||
yum: name=http://rpms.remirepo.net/enterprise/remi-release-7.rpm state=present | ||
|
||
- name: upgrade all packages | ||
yum: name=* state=latest | ||
|
||
- name: Install php | ||
yum: pkg={{ item }} enablerepo=remi,remi-php70 state=present | ||
with_items: | ||
- php | ||
|
||
- name: Install php modules | ||
yum: pkg={{ item }} enablerepo=remi,remi-php70 state=present | ||
with_items: | ||
- php-mbstring | ||
- php-devel | ||
- php-opcache | ||
- php-soap | ||
- php-pdo | ||
- php-mcrypt | ||
- php-pecl-xdebug | ||
- php-xml | ||
- php-mysql | ||
- php-gd | ||
notify: | ||
- restart httpd |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# file: roles/php70/tasks/main.yml | ||
--- | ||
|
||
- include: install.yml | ||
- include: configure.yml |