Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 10, 2023
Merged

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

merged 2 commits into from
Jun 10, 2023

Conversation

ThomasSanson
Copy link
Sponsor Contributor

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

The no-free-form rule was removed from the skip_list in order to enable it. This rule checks that all tasks have a `task` key and that it is not a free-form task.
…set_fact tasks in consul role

The service task in ansible-role-firewall was reformatted to use a dictionary for the service name and state. This improves readability and consistency with other tasks in the playbook. The set_fact tasks in the consul role were also reformatted to use a dictionary for the variable assignment. This improves readability and consistency with other tasks in the playbook.
@vitabaks vitabaks merged commit 9436b23 into vitabaks:master Jun 10, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants