debops / debops-playbooks

Ansible playbooks used by DebOps project
GNU General Public License v3.0
489 stars 88 forks source link

Resources before Ferm #360

Closed thiagotalma closed 7 years ago

thiagotalma commented 7 years ago

The "resources" role should come before the role "ferm" so that it is possible to use in the rules the files that are written by the role "resources"

drybjed commented 7 years ago

@thiagotalma The debops.ferm role has a task and a set of variables that can be used to copy custom files like scripts. Do you that this would be enough, or do you need the other debops.resources features?

thiagotalma commented 7 years ago

In resources I copy several scripts that will be used in ferm. For example, scripts that are used to check the current ip of DDNS and write them to a file. A ferm rule will use this file to release ssh access.

But if it's a problem for you, I can solve it in other ways here. I just thought this change could be useful for more people.

drybjed commented 7 years ago

No, I just wondered if you knew about those variables. I guess moving debops.resources earlier in the common playbook should be fine.