forked from roots/trellis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'root/master'
* root/master: fixes add-apt-repository installation for VMWare's box Fix sudoers line Fix Ansible deprecations Fix php-xdebug config file path Update CHANGELOG with roots#504 Add php7.0-mbstring Update CHANGELOG with roots#503 Added necessary php modules Mention MailHog [ci skip]
- Loading branch information
Showing
21 changed files
with
234 additions
and
141 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
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,16 +1,25 @@ | ||
--- | ||
- name: ensure fail2ban is installed | ||
apt: pkg=fail2ban state=latest update_cache=true cache_valid_time={{ apt_cache_valid_time }} | ||
apt: | ||
pkg: fail2ban | ||
state: latest | ||
update_cache: true | ||
cache_valid_time: "{{ apt_cache_valid_time }}" | ||
notify: | ||
- restart fail2ban | ||
|
||
- name: ensure fail2ban is configured | ||
template: src={{ item }}.j2 dest=/etc/fail2ban/{{ item }} | ||
template: | ||
src: "{{ item }}.j2" | ||
dest: /etc/fail2ban/{{ item }} | ||
with_items: | ||
- jail.local | ||
- fail2ban.local | ||
notify: | ||
- restart fail2ban | ||
|
||
- name: ensure fail2ban starts on a fresh reboot | ||
service: name=fail2ban state=started enabled=yes | ||
service: | ||
name: fail2ban | ||
state: started | ||
enabled: yes |
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
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
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,13 +1,16 @@ | ||
--- | ||
- name: ensure ssh server is installed | ||
apt: pkg=openssh-server | ||
state=latest | ||
update_cache=true | ||
cache_valid_time="{{ apt_cache_valid_time }}" | ||
apt: | ||
pkg: openssh-server | ||
state: latest | ||
update_cache: true | ||
cache_valid_time: "{{ apt_cache_valid_time }}" | ||
notify: | ||
- restart ssh | ||
|
||
- name: ensure sshd is configured | ||
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config | ||
template: | ||
src: sshd_config.j2 | ||
dest: /etc/ssh/sshd_config | ||
notify: | ||
- restart ssh |
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,6 +1,10 @@ | ||
--- | ||
- name: Install ssmtp | ||
apt: name=ssmtp state=present | ||
apt: | ||
name: ssmtp | ||
state: present | ||
|
||
- name: ssmtp configuration | ||
template: src=ssmtp.conf.j2 dest=/etc/ssmtp/ssmtp.conf | ||
template: | ||
src: ssmtp.conf.j2 | ||
dest: /etc/ssmtp/ssmtp.conf |
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
Oops, something went wrong.