How did I already break git history bruh

This commit is contained in:
citty 2021-10-15 21:15:55 -04:00
parent 7adc598bef
commit 549df68b12
3 changed files with 21 additions and 0 deletions

5
autopassword.sh Normal file
View 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}"

View 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
View 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