vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
https://postgresql-cluster.org
MIT License
1.69k stars 411 forks source link

Enable no-free-form rule and refactor tasks #377

Closed ThomasSanson closed 1 year ago

ThomasSanson commented 1 year ago

This pull request introduces two primary changes to the project:

  1. The no-free-form rule was removed from the skip_list to enable it. This rule ensures that all tasks have a task key and are not free-form tasks. This change increases the robustness of the task structure in the project.

  2. The service task in ansible-role-firewall and the set_fact tasks in the consul role were reformatted. Instead of using a free-form task structure, these tasks now use a dictionary for the service name, state, and variable assignment. This restructuring improves the readability and consistency of these tasks with other tasks in the playbook