tseho / ansible-role-server

Ansible role for basic server configuration & security

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-role-server

Install

ansible-galaxy install tseho.server

See defaults for overridable options.

iptables

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

ACL on files

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"

About

Ansible role for basic server configuration & security

License:MIT License


Languages

Language:HTML 94.8%Language:Shell 5.2%