How did I already break git history bruh
This commit is contained in:
parent
7adc598bef
commit
549df68b12
5
autopassword.sh
Normal file
5
autopassword.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
key=hello
|
||||
name=$1
|
||||
hash=$(echo -n "$name$key" | sha256sum | xxd -r -p | base64 | tr -d '+/')
|
||||
echo "${hash:0:8}-${hash:8:8}"
|
8
roles/database/tasks/main.yml
Normal file
8
roles/database/tasks/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Allow MySQL traffic
|
||||
ufw: rule={{ item.rule }} port={{ item.port }} proto={{ item.proto }}
|
||||
with_items:
|
||||
- { rule: 'allow', port: '3306', proto: 'tcp' }
|
||||
notify:
|
||||
- restart ufw
|
||||
become: yes
|
8
roles/web/main.yml
Normal file
8
roles/web/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Allow Web traffic
|
||||
ufw: rule={{ item.rule }} port={{ item.port }} proto={{ item.proto }}
|
||||
with_items:
|
||||
- { rule: 'allow', port: '80', proto: 'tcp' }
|
||||
notify:
|
||||
- restart ufw
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user