Compare commits
2 Commits
68e2867f44
...
03d59be0eb
Author | SHA1 | Date | |
---|---|---|---|
03d59be0eb | |||
0f5d50ee44 |
@ -15,7 +15,7 @@
|
|||||||
user:
|
user:
|
||||||
name: gitea
|
name: gitea
|
||||||
register: user_gitea
|
register: user_gitea
|
||||||
when: '"gitea" in groups'
|
when: '"gitea" in group_names'
|
||||||
|
|
||||||
- name: Create Syncthing group
|
- name: Create Syncthing group
|
||||||
group:
|
group:
|
||||||
@ -27,7 +27,7 @@
|
|||||||
name: syncthing
|
name: syncthing
|
||||||
group: vault
|
group: vault
|
||||||
register: user_syncthing
|
register: user_syncthing
|
||||||
when: '"syncthing" in groups'
|
when: '"syncthing" in group_names'
|
||||||
|
|
||||||
- name: Create Syncthing vault directories
|
- name: Create Syncthing vault directories
|
||||||
file:
|
file:
|
||||||
@ -95,7 +95,7 @@
|
|||||||
user:
|
user:
|
||||||
name: navidrome
|
name: navidrome
|
||||||
register: user_navidrome
|
register: user_navidrome
|
||||||
when: '"navidrome" in groups'
|
when: '"navidrome" in group_names'
|
||||||
|
|
||||||
- name: Create Navidrome directory
|
- name: Create Navidrome directory
|
||||||
file:
|
file:
|
||||||
@ -124,7 +124,7 @@
|
|||||||
user:
|
user:
|
||||||
name: synapse
|
name: synapse
|
||||||
register: user_synapse
|
register: user_synapse
|
||||||
when: '"synapse" in groups'
|
when: '"synapse" in group_names'
|
||||||
|
|
||||||
- name: Figure out local IP address
|
- name: Figure out local IP address
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
- name: Create Synapse user
|
- name: Create Synapse user
|
||||||
user:
|
user:
|
||||||
name: synapse
|
name: synapse
|
||||||
when: '"synapse" in groups'
|
when: '"synapse" in group_names'
|
||||||
|
|
||||||
- name: Create Synapse directories
|
- name: Create Synapse directories
|
||||||
file:
|
file:
|
||||||
|
@ -17,6 +17,13 @@
|
|||||||
reload: yes
|
reload: yes
|
||||||
when: '"bastion" in group_names'
|
when: '"bastion" in group_names'
|
||||||
|
|
||||||
|
- name: Prevent UFW from removing IP forwarding
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/ufw/sysctl.conf
|
||||||
|
regexp: "^net/ipv4/ip_forward="
|
||||||
|
line: "net/ipv4/ip_forward=1"
|
||||||
|
when: '"bastion" in group_names'
|
||||||
|
|
||||||
- name: Setup UFW rules to accept VPN traffic
|
- name: Setup UFW rules to accept VPN traffic
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
|
Loading…
Reference in New Issue
Block a user