Repository navigation
Implement ansible-lint #83
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
130fd6a
Implement ansible-lint
znerol 159a3e9
Apply ansible-lint --fix none,fqcn
znerol 576fc4a
Apply ansible-lint --fix none,key-order
znerol 057bd90
Apply ansible-lint --fix none,jinja
znerol 8fb9aeb
Apply ansible-lint --fix none,name (plus manual fixes)
znerol 5899c80
Address remaining violations
znerol 4054bb4
Ignore role prefix violation on existing variables
znerol 8730bc1
Add galaxy requirements file
znerol 71982a3
Fix path to requirements file
znerol 424a082
Fix community.general version
znerol 54ad2f7
Add community.crypto to requirements file
znerol 1060fbb
Add empty ansible-lint config file (sholud help with ignore file)
znerol 5d672f0
Revert "Add empty ansible-lint config file (sholud help with ignore f…
znerol 8e2f8c5
Fix internal vars used as task return values
znerol 91b8f6e
Fix rename accident
znerol 04980f5
No need to use sudo when become: true is in effect
znerol 847e1b1
Pin all GH actions to the commit hash
znerol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # This file contains ignores rule violations for ansible-lint | ||
| roles/base/defaults/main.yml var-naming[no-role-prefix] | ||
| roles/dns_backend/defaults/main.yml var-naming[no-role-prefix] | ||
| roles/dns_backend/vars/main.yml var-naming[no-role-prefix] | ||
| roles/dns_frontend/defaults/main.yml var-naming[no-role-prefix] | ||
| roles/dns_frontend/vars/main.yml var-naming[no-role-prefix] | ||
| roles/monitoring/vars/main.yml var-naming[no-role-prefix] |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| collections: | ||
| - name: ansible.posix | ||
| version: 2.2.2 | ||
| - name: community.crypto | ||
| version: 3.4.0 | ||
| - name: community.general | ||
| version: 13.4.0 |
This file contains hidden or 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 hidden or 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,22 +1,23 @@ | ||
| --- | ||
| - name: restart ssh.socket | ||
| when: ssh_socket_is_active.rc == 0 | ||
| systemd_service: | ||
| - name: Restart ssh.socket | ||
| when: base_ssh_socket_is_active.rc == 0 | ||
| ansible.builtin.systemd_service: | ||
| name: ssh.socket | ||
| state: restarted | ||
| daemon_reload: true | ||
|
|
||
| - name: restart ssh | ||
| service: | ||
| - name: Restart ssh | ||
| ansible.builtin.service: | ||
| name: ssh | ||
| state: restarted | ||
|
|
||
| - name: firewall | apply ruleset | ||
| systemd_service: | ||
| - name: Firewall | apply ruleset | ||
| ansible.builtin.systemd_service: | ||
| name: nftables | ||
| state: reloaded | ||
|
|
||
| - name: apply netplan | ||
| command: sudo netplan apply | ||
| - name: Apply netplan | ||
| async: 45 | ||
| poll: 0 | ||
| changed_when: true | ||
| ansible.builtin.command: netplan apply |
This file contains hidden or 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
6 changes: 3 additions & 3 deletions
6
configuration-files/roles/base/software/packages_utilities.yml
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
12 changes: 6 additions & 6 deletions
12
configuration-files/roles/base/tasks/unattended-upgrades.yml
This file contains hidden or 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,11 +1,11 @@ | ||
| --- | ||
| - name: unattended-upgrades | install | ||
| package: | ||
| state: latest | ||
| - name: Unattended upgrades | install | ||
| ansible.builtin.package: | ||
| state: present | ||
| name: unattended-upgrades | ||
|
|
||
| - name: unattended-upgrades | ensure service is enabled and running | ||
| service: | ||
| - name: Unattended upgrades | ensure service is enabled and running | ||
| ansible.builtin.service: | ||
| name: unattended-upgrades | ||
| state: started | ||
| enabled: yes | ||
| enabled: true |
This file contains hidden or 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,5 +1,5 @@ | ||
| --- | ||
| - name: restart unbound | ||
| service: | ||
| - name: Restart unbound | ||
| ansible.builtin.service: | ||
| name: unbound | ||
| state: restarted |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.