forked from vitabaks/autobase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable no-free-form rule and refactor tasks (vitabaks#377)
* 🔥 chore(ansible-lint.yml): remove no-free-form rule from skip_list 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. * 🎨 style(ansible): reformat service task in ansible-role-firewall and 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.
- Loading branch information
1 parent
dbfa7f9
commit 9436b23
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
- name: restart firewall | ||
service: name=firewall state=restarted | ||
service: | ||
name: firewall | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters