Deprecating old stuff that isnt used anymore
This commit is contained in:
16
deprecated/playbooks/athens-common/touch.yml
Normal file
16
deprecated/playbooks/athens-common/touch.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
# This is purely here to check if things are
|
||||
# working properly
|
||||
---
|
||||
- hosts: alpha, beta, gamma, sigma
|
||||
remote_user: ubuntu
|
||||
tasks:
|
||||
- name: Echo
|
||||
shell: echo 'This playbooks is just testing connectivity'
|
||||
|
||||
- name: Sample HTTP Request
|
||||
shell: curl http://google.com
|
||||
|
||||
- name: Sample HTTPS Request
|
||||
shell: curl -k https://gogle.com
|
||||
|
||||
|
||||
42
deprecated/playbooks/athens-common/ufw.yml
Normal file
42
deprecated/playbooks/athens-common/ufw.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
# This play book sets up a mirrored setup for both web service hosts
|
||||
# such that they accept web traffic in and out from anywhere
|
||||
# but only accept ssh connections from the internal network
|
||||
---
|
||||
- hosts: alpha,beta
|
||||
remote_user: ubuntu
|
||||
# UFW is only accessible to root so sudo is required for each task
|
||||
become: yes
|
||||
become_method: sudo
|
||||
tasks:
|
||||
- name: Install UFW in case it's not here
|
||||
apt:
|
||||
name: ufw
|
||||
update_cache: yes
|
||||
- name: Allow SSH connections from internal network
|
||||
ufw:
|
||||
rule: allow
|
||||
port: ssh
|
||||
direction: incoming
|
||||
|
||||
- name: Rate limit SSH connections
|
||||
ufw:
|
||||
rule: limit
|
||||
direction: incoming
|
||||
port: ssh
|
||||
proto: tcp
|
||||
|
||||
- name: Allow Plain-HTTP traffic from anywhere
|
||||
ufw:
|
||||
rule: allow
|
||||
port: 80
|
||||
proto: tcp
|
||||
|
||||
- name: Allow HTTPS traffic from anywhere
|
||||
ufw:
|
||||
rule: allow
|
||||
port: 443
|
||||
proto: tcp
|
||||
|
||||
|
||||
|
||||
|
||||
5
deprecated/playbooks/athens-common/update-certs.yml
Normal file
5
deprecated/playbooks/athens-common/update-certs.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- import_playbook: '../beta/certbot.yml'
|
||||
- import_playbook: '../alpha/certbot.yml'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user