Skip to content

Commit

Permalink
Perform linting on Ansible playbooks (#101)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
konstruktoid and apatard authored Mar 21, 2023
1 parent 5d86a8b commit e179c3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ exclude_paths:
skip_list:
# Temporary skips made during migration
- args[module]
- experimental
- fqcn-builtins
- yaml[line-length]
- var-spacing
- yaml[line-length]

mock_modules:
- vagrant # only until we publish community.vagrant collection
2 changes: 1 addition & 1 deletion molecule/test-podman/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
tasks:
- name: Test
ansible.builtin.debug:
msg: it worked!
msg: "It worked!"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
path: "{{ ssh_identity_file }}"
register: keypair

- name: Create molecule Linux instance(s)
- name: "Create molecule Linux instance(s)"
google.cloud.gcp_compute_instance:
state: present
name: "{{ item.name }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
ansible.builtin.copy:
src: /etc/hosts
dest: /tmp/hosts-from-controller
mode: '0644'
- name: "Include {{ cookiecutter.role_name }}"
ansible.builtin.include_role:
name: "{{ cookiecutter.role_name }}"

0 comments on commit e179c3d

Please sign in to comment.