Initial commit

This commit is contained in:
Sonny Bakker 2021-10-22 22:07:35 +02:00
commit f22e5301aa
11 changed files with 58 additions and 0 deletions

16
.gitignore vendored Normal file
View file

@ -0,0 +1,16 @@
*.retry
*.swp
.venv
.env
env
venv
node_modules/
.vault
.vaults/
vault
vaults/
roles/

5
.prettierrc.yml Normal file
View file

@ -0,0 +1,5 @@
singleQuote: true
printWidth: 90
tabWidth: 2
useTabs: false
bracketSpacing: true

2
ansible.cfg Normal file
View file

@ -0,0 +1,2 @@
[privilege_escalation]
become_ask_pass = True

18
playbook.yml Normal file
View file

@ -0,0 +1,18 @@
- hosts: localhost
pre_tasks:
- name: install shared packages
become: true
pacman:
name: '{{ packages }}'
- roles:
- common
tasks:
# TODO add ssh setup
# TODO add nginx setup
- import_tasks: 'tasks/setup.yml'
- import_tasks: 'tasks/wireguard.yml'
- import_tasks: 'tasks/radicale.yml'
- import_tasks: 'tasks/syncthing.yml'
- import_tasks: 'tasks/transmission.yml'
vars_files:
- 'vars.yml'

4
requirements.yml Normal file
View file

@ -0,0 +1,4 @@
- src: git+https://git.fudiggity.nl/ansible/common.git
name: common
version: master
scm: git

0
tasks/radicale.yml Normal file
View file

8
tasks/setup.yml Normal file
View file

@ -0,0 +1,8 @@
- name: copy firewall template
template:
src: 'templates/nftables.j2'
dest: '/etc/nftables.conf'
owner: root
group: root
mode: '0600'
notify: restart nftables

0
tasks/syncthing.yml Normal file
View file

0
tasks/transmission.yml Normal file
View file

0
tasks/wireguard.yml Normal file
View file

5
vars.yml Normal file
View file

@ -0,0 +1,5 @@
packages:
- nftables
- wireguard
- syncthing
- transmission