ansible-galaxy install tseho.server
See defaults for overridable options.
iptables are configured by default.
If you want to add one, see iptables_module and don't forget to trigger Save iptables
.
- iptables:
chain: INPUT
action: insert
...
notify: Save iptables
If you want to allow an user to write on a directory or file, you can use the role:
tasks:
- import_role:
name: tseho.server
tasks_from: acl
vars:
server_writable_paths:
- path: "/var/foo"
user: "www-data"