Skip to content

Commit b55aa72

Browse files
committed
Fixes ansible-lint issues (6.21.1)
1 parent 09f239d commit b55aa72

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

molecule/default/converge.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
- hosts: all
2+
- name: Converge
3+
hosts: all
34
vars:
4-
role_name: "{{ lookup('env','MOLECULE_PROJECT_DIRECTORY') | basename }}"
5+
this_role: "{{ lookup('env','MOLECULE_PROJECT_DIRECTORY') | basename }}"
56
manage_firewall: false
67
# yamllint disable-line rule:line-length
78
chrony_key: '1234 SHA256 HEX:DD4E59D2CAE16FFCEBF23D67201814A2FA63251E1B23A1AF3A99203121807C6C'
89

910
tasks:
10-
- name: "Include {{ role_name }}"
11+
- name: "Include {{ this_role }}"
1112
ansible.builtin.include_role:
12-
name: "{{ role_name }}"
13+
name: "{{ this_role }}"
1314
...

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pipx
44
attrs>=19.2.0
55
rich==12.5.1
66
ansible==7.0.0
7-
ansible-lint==6.4.0
7+
ansible-lint==6.21.1
88
molecule==4.0.1
99
molecule-docker==2.0.0
1010
molecule-vagrant-1.0.0

tasks/firewall.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- ansible_os_family == 'Debian'
1717
- firewall_package == 'ufw'
1818
- net_allow|length > 0
19-
ufw:
19+
community.general.ufw:
2020
rule: allow
2121
port: '123'
2222
proto: udp
@@ -25,7 +25,7 @@
2525
when:
2626
- ansible_os_family == 'RedHat'
2727
- net_allow|length > 0
28-
firewalld:
28+
ansible.posix.firewalld:
2929
service: ntp
3030
immediate: true
3131
permanent: true

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
register: nettime_package
1818
ignore_errors: true
1919

20-
- name: manage firewall
20+
- name: Manage firewall
2121
when: manage_firewall
2222
include_tasks: firewall.yml
2323

@@ -56,7 +56,7 @@
5656
notify: Restart chronyd
5757

5858
- name: Set timezone
59-
timezone:
59+
community.general.timezone:
6060
name: "{{ timezone | default('UTC') }}"
6161
notify: Restart chronyd
6262

0 commit comments

Comments
 (0)