Compare commits
2 Commits
74a559f1f6
...
fa1dc4acb7
Author | SHA1 | Date | |
---|---|---|---|
fa1dc4acb7 | |||
228cd5795b |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.vagrant
|
|
||||||
.playbook
|
.playbook
|
||||||
/environments/
|
.vagrant
|
||||||
|
.vscode
|
||||||
|
/environments/
|
@ -1,6 +1,7 @@
|
|||||||
|
allow_reboot: true
|
||||||
|
manage_firewall: true
|
||||||
manage_network: false
|
manage_network: false
|
||||||
network_type: static
|
network_type: static
|
||||||
allow_reboot: true
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
- name: Import Firewall tasks
|
- name: Import Firewall tasks
|
||||||
ansible.builtin.import_tasks: firewall.yml
|
ansible.builtin.import_tasks: firewall.yml
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
when: manage_firewall
|
||||||
|
|
||||||
- name: Import Network tasks
|
- name: Import Network tasks
|
||||||
ansible.builtin.import_tasks: network.yml
|
ansible.builtin.import_tasks: network.yml
|
||||||
|
@ -50,3 +50,4 @@
|
|||||||
from: "{{ item }}"
|
from: "{{ item }}"
|
||||||
state: enabled
|
state: enabled
|
||||||
loop: "{{ samba.firewall }}"
|
loop: "{{ samba.firewall }}"
|
||||||
|
when: manage_firewall
|
||||||
|
@ -35,5 +35,5 @@
|
|||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
port: "{{ wireguard.listenport }}"
|
port: "{{ wireguard.listenport }}"
|
||||||
proto: tcp
|
proto: udp
|
||||||
when: wireguard.listenport is defined
|
when: wireguard.listenport is defined
|
||||||
|
@ -13,7 +13,16 @@
|
|||||||
[{{ share.name }}]
|
[{{ share.name }}]
|
||||||
path = {{ share.path }}
|
path = {{ share.path }}
|
||||||
browsable = yes
|
browsable = yes
|
||||||
|
{% if share.guest_allow is defined and share.guest_allow %}
|
||||||
|
guest ok = yes
|
||||||
|
{% else %}
|
||||||
guest ok = no
|
guest ok = no
|
||||||
|
{% endif %}
|
||||||
read only = {{ 'yes' if share.read_only | default(false) else 'no' }}
|
read only = {{ 'yes' if share.read_only | default(false) else 'no' }}
|
||||||
|
{% if share.valid_users is defined %}
|
||||||
valid users = {{ share.valid_users }}
|
valid users = {{ share.valid_users }}
|
||||||
|
{% endif %}
|
||||||
|
{% if share.force_user is defined %}
|
||||||
|
force user = {{ share.force_user }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user