Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 2ded857

Browse files
committed
Merge branch 'release/v0.2.0-beta'
2 parents 370a372 + a03ed61 commit 2ded857

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1026
-265
lines changed

CHANGELOG.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v0.2.0-beta - May 17, 2017
2+
- Debian 8
3+
- UTC TimeZone
4+
- Fail2Ban Support
5+
- PageSpeed Configuration
6+
- WooCommerce Cache Bypass
7+
- Fix #14 #21 #24 #25
8+
19
v0.1.0-beta - March 1, 2017
210
- First Beta Release
311
- NGINX PageSpeed Support
@@ -10,4 +18,3 @@ v0.1.0-beta - March 1, 2017
1018
4. WordPress
1119
5. WordPress W3TC (W3 Total Cache)
1220
6. WordPress FastCGI Cache
13-

README.md

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,45 @@
11
# AnsiPress
22

3-
[![saythanks](https://img.shields.io/badge/say-thanks-ff69b4.svg)](https://saythanks.io/to/MiteshShah) [![Join AnsiPress Slack Channel](https://ansipress.herokuapp.com/badge.svg)](https://ansipress.herokuapp.com/)
3+
<a href="https://www.paypal.me/AnsiPress"><img src="https://cloud.githubusercontent.com/assets/1223371/23652872/75a751aa-0350-11e7-8a1f-20460e1e82fa.png" width="80" height="20"></a> [![saythanks](https://img.shields.io/badge/say-thanks-ff69b4.svg)](https://saythanks.io/to/MiteshShah) [![Join AnsiPress Slack Channel](https://ansipress.herokuapp.com/badge.svg)](https://ansipress.herokuapp.com/)
44

55

6+
[![AnsiPress](https://cloud.githubusercontent.com/assets/1223371/23602874/937c6338-0278-11e7-8a91-6d62d677c46b.png)](https://www.youtube.com/watch?v=s7ShsNrQ4-0)
7+
68
## Quick Start
79

10+
✓ = Under Testing
11+
⚠ = Under Progress
12+
13+
### Features
14+
15+
✓ True Shared Hosting
16+
17+
✓ NGINX + PageSpeed
18+
19+
✓ PHP 7.1 With Different Master Process for Each User
20+
21+
✓ MariaDB
22+
23+
✓ WordPress (W3TC & FastCGI Cache)
24+
25+
✓ Google PageSpeed Configuration
26+
27+
✓ Fail2Ban
28+
29+
⚠ Lets Encrypt (ETA in 2 Weeks)
30+
31+
⚠ NGINX Redis Module (ETA in 5 weeks)
32+
33+
⚠ Laravel Support (ETA in 10 weeks)
34+
35+
⚠ Drupal Support (ETA in 15 weeks)
36+
837
**Operating System:**
938

1039
- ✓ Ubuntu 16.04
11-
- Debian 8 & 9
40+
- Debian 8
1241
- ⚠ CentOS 7
1342

14-
✓ = Supported OS
15-
16-
⚠ = Under Progress
1743

1844
**Port Requirements:**
1945

@@ -26,7 +52,7 @@
2652

2753

2854

29-
#### Ansible - [Install Ansible] (https://miteshshah.github.io/devops/ansible/ansible-installation/)
55+
### Ansible - [Install Ansible](https://miteshshah.github.io/devops/ansible/ansible-installation/)
3056

3157
#### Clone AnsiPress
3258

@@ -38,9 +64,9 @@ $ cd AnsiPress && git checkout develop
3864
#### Setup SSH Server Login Details
3965

4066
* AnsiPress required you can login to remote server via `ssh AnsiPress.local`
41-
* Change the [AnsiPerss.local] (https://github.com/AnsiPress/AnsiPress/blob/develop/hosts#L2) server name
67+
* Change the [AnsiPerss.local](https://github.com/AnsiPress/AnsiPress/blob/develop/hosts#L2) server name
4268
* Make sure you are able to connect server via `ssh example.com`
43-
* Refer - [SSH Configuration] (https://miteshshah.github.io/linux/ssh/ssh-tips-and-tricks/#ssh-config)
69+
* Refer - [SSH Configuration](https://miteshshah.github.io/linux/ssh/ssh-tips-and-tricks/#ssh-config)
4470

4571
#### Run the AnsiPress Playbook
4672

@@ -58,12 +84,12 @@ $ ansible-playbook -i hosts setup.yml --extra-vars="username=wp website_name=w3t
5884
$ ansible-playbook -i hosts setup.yml --extra-vars="username=wp website_name=wpfc.com website_type=wpfc"
5985
```
6086

61-
#### Track Development
87+
### Track Development
6288

63-
[Milestone] (https://github.com/AnsiPress/AnsiPress/milestones)
89+
[Milestone](https://github.com/AnsiPress/AnsiPress/milestones)
6490

65-
#### Donation
66-
[![PayPal Donate](https://cloud.githubusercontent.com/assets/1223371/20793214/ec6ffca2-b7eb-11e6-9614-d893ff77a565.png)] (https://paypal.me/AnsiPress)
91+
### Donation
92+
[![PayPal Donate](https://cloud.githubusercontent.com/assets/1223371/20793214/ec6ffca2-b7eb-11e6-9614-d893ff77a565.png)](https://paypal.me/AnsiPress)
6793

6894
Yes you can! Just click on the image above ;)
6995

group_vars/all

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
remote_user: root
44
ansible_python_interpreter: /usr/bin/python3
55

6-
7-
# AnsiPress Server TimeZone
8-
# Why you need UTC TimeZone -
9-
# http://yellerapp.com/posts/2015-01-12-the-worst-server-setup-you-can-make.html
10-
timezone: Etc/UTC
6+
# Fail2ban Bantime 24 hours.
7+
bantime: 86400
8+
# Fail2ban ignore ip address separated by space
9+
ignoreip: 127.0.0.1/8
1110

1211
# Create New User Account
1312
# We can also pass username variable value using following command
@@ -24,8 +23,11 @@ packages:
2423
- git
2524
- htop
2625
- coreutils
26+
- libssl-dev
27+
- lsb-release
2728
- python3-dev
2829
- python3-pip
29-
- python3-passlib
30+
- ca-certificates
31+
- apt-transport-https
3032
- python-software-properties
3133
- software-properties-common

hosts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[AnsiPress]
2-
AnsiPress.local
2+
AnsiPress.ubuntu
3+
AnsiPress.debian

roles/bootstrap/handlers/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
- name: service ntp restart
3+
service: name=ntp state=restarted

roles/bootstrap/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- include: roles/libs/tasks/ping.yml
33
- include: roles/libs/tasks/hostname.yml
44
- include: roles/libs/tasks/timezone.yml
5+
- include: roles/libs/tasks/umask.yml
56
- include: roles/libs/tasks/apt/update.yml
67
- include: roles/libs/tasks/apt/dist_upgrade.yml
78
- include: roles/libs/tasks/apt/install.yml
9+
- include: roles/libs/tasks/apt/ntp.yml

roles/libs/tasks/apt/install.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
- name: Installing required software, Hold on...
44
apt: name={{ item }} state=present
55
with_items: "{{ packages }}"
6+
7+
- name: Installing passlib software, Hold on...
8+
pip: name=passlib state=present

roles/libs/tasks/apt/ntp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# Install NTP
3+
- name: Installing NTP Service, Hold on...
4+
apt: name=ntp state=present
5+
notify: service ntp restart

roles/libs/tasks/timezone.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---
22
# Setup TimeZone
3+
# AnsiPress Server TimeZone
4+
# Why you need UTC TimeZone -
5+
# http://yellerapp.com/posts/2015-01-12-the-worst-server-setup-you-can-make.html
6+
7+
# Dont Forget to Update TimeZone in PHP (UTC)
38
- name: Setup Timezone to UTC, Hold on...
4-
timezone: name={{ timezone }}
9+
timezone: name=Etc/UTC

roles/libs/tasks/umask.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# Setup UMASK for Better Security
3+
- name: Setup UMASK, Hold on...
4+
lineinfile:
5+
dest: "/etc/profile"
6+
regexp: "{{ item.regexp }}"
7+
line: "{{ item.line }}"
8+
with_items:
9+
- { regexp: '^umask', line: 'umask 0027' }

0 commit comments

Comments
 (0)