bulch/ansible-role-rsync-server ? reverse-engineered prompt
Reverse engineered prompt
Build me an Ansible role that sets up an rsync server on a machine and makes it easy to define one or more shared rsync modules from variables.
I want it to install rsync, write the rsync daemon config file, and let me control the port, timeout, max connections, and where the config file lives. It should also support a simple list of shares, where each share can have a name, a comment, a path, allowed hosts, and login details for basic access. If no shares are defined, it should still install and configure the server cleanly.
Please include sensible defaults, handlers, and a template for the config file. Keep it easy to drop into a playbook with just a few variables, and make sure it works well on Debian based systems. If you need to check the current Ansible docs or rsync daemon config details online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit