Skip to content

Commit e179c3d

Browse files
Perform linting on Ansible playbooks (#101)
* skip experimental rules Signed-off-by: Thomas Sjögren <[email protected]> * Lint ansible files Signed-off-by: Thomas Sjögren <[email protected]> * fix missed alignment Signed-off-by: Thomas Sjögren <[email protected]> * Fix blk100 flake8 errors Flake8 is giving errors about some empty lines in the code, so remove the line to fix these errors. Signed-off-by: Arnaud Patard <[email protected]> --------- Signed-off-by: Thomas Sjögren <[email protected]> Signed-off-by: Arnaud Patard <[email protected]> Co-authored-by: Arnaud Patard <[email protected]>
1 parent 5d86a8b commit e179c3d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.ansible-lint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ exclude_paths:
99
skip_list:
1010
# Temporary skips made during migration
1111
- args[module]
12+
- experimental
1213
- fqcn-builtins
13-
- yaml[line-length]
1414
- var-spacing
15+
- yaml[line-length]
1516

1617
mock_modules:
1718
- vagrant # only until we publish community.vagrant collection

molecule/test-podman/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
tasks:
55
- name: Test
66
ansible.builtin.debug:
7-
msg: it worked!
7+
msg: "It worked!"

src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
path: "{{ ssh_identity_file }}"
66
register: keypair
77

8-
- name: Create molecule Linux instance(s)
8+
- name: "Create molecule Linux instance(s)"
99
google.cloud.gcp_compute_instance:
1010
state: present
1111
name: "{{ item.name }}"

src/molecule_plugins/podman/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
ansible.builtin.copy:
88
src: /etc/hosts
99
dest: /tmp/hosts-from-controller
10+
mode: '0644'
1011
- name: "Include {{ cookiecutter.role_name }}"
1112
ansible.builtin.include_role:
1213
name: "{{ cookiecutter.role_name }}"

0 commit comments

Comments
 (0)