Skip to content

Commit

Permalink
ci: updates to match latest linting rules
Browse files Browse the repository at this point in the history
Signed-off-by: Zakhar Bessarab <[email protected]>
  • Loading branch information
zekker6 committed Feb 22, 2024
1 parent eaa856f commit c6478b8
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
skip_list:
- 'var-naming[no-role-prefix]'
2 changes: 1 addition & 1 deletion roles/cluster/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ansible.builtin.get_url:
url: "{{ goss_url }}"
dest: "{{ goss_bin }}"
sha256sum: "{{ goss_sha256sum }}"
sha256sum: "{{ goss_sha256sum }}" # noqa: args[module]
mode: "u=rwx,go=rx"
register: download_goss
until: download_goss is succeeded
Expand Down
6 changes: 3 additions & 3 deletions roles/single/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
- not victoriametrics_is_installed.stat.exists or
victoriametrics_version not in victoriametrics_current_version.stdout

- name: Upload VictoriaMetrics release binary
- name: Upload VictoriaMetrics release binary # noqa: no-handler
ansible.builtin.copy:
src: /tmp/vic-single/victoria-metrics-prod
dest: /usr/local/bin
Expand All @@ -82,7 +82,7 @@
when:
- archive_downloaded is changed

- name: Download VictoriaMetrics utils
- name: Download VictoriaMetrics utils # noqa: no-handler
become: no
environment:
http_proxy: ''
Expand All @@ -95,7 +95,7 @@
when:
- archive_downloaded is changed

- name: Upload VictoriaMetrics release binaries
- name: Upload VictoriaMetrics release binaries # noqa: no-handler
ansible.builtin.copy:
src: "/tmp/vic-utils/{{ item }}"
dest: /usr/local/bin
Expand Down
4 changes: 2 additions & 2 deletions roles/single/tests/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: all
name: Test role
- name: Test role
hosts: all
become: true
roles:
- "single"
2 changes: 1 addition & 1 deletion roles/vmagent/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ansible.builtin.get_url:
url: "{{ goss_url }}"
dest: "{{ goss_bin }}"
sha256sum: "{{ goss_sha256sum }}"
sha256sum: "{{ goss_sha256sum }}" # noqa: args[module]
mode: "u=rwx,go=rx"
register: download_goss
until: download_goss is succeeded
Expand Down
2 changes: 1 addition & 1 deletion roles/vmagent/molecule/docker/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ansible.builtin.get_url:
url: "{{ goss_url }}"
dest: "{{ goss_bin }}"
sha256sum: "{{ goss_sha256sum }}"
sha256sum: "{{ goss_sha256sum }}" # noqa: args[module]
mode: "u=rwx,go=rx"
register: download_goss
until: download_goss is succeeded
Expand Down
4 changes: 2 additions & 2 deletions roles/vmagent/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
no_log: True
notify: Restart VMagent service

- name: "Systemd | daemon-reload VMagent service"
- name: "Systemd | daemon-reload VMagent service" # noqa: no-handler
become: true
ansible.builtin.systemd:
daemon_reload: true
Expand All @@ -38,7 +38,7 @@
notify: Restart VMagent service
register: config_template

- name: "Upstart | Enable vic-vmagent service"
- name: "Upstart | Enable vic-vmagent service" # noqa: no-handler
ansible.builtin.service:
name: "vic-vmagent"
enabled: "yes"
Expand Down
2 changes: 1 addition & 1 deletion roles/vmalert/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
notify: Restart VMalert service
no_log: True

- name: "Systemd | daemon-reload VMalert service"
- name: "Systemd | daemon-reload VMalert service" # noqa: no-handler
become: true
ansible.builtin.systemd:
daemon_reload: true
Expand Down
4 changes: 2 additions & 2 deletions roles/vmalert/tests/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: all
name: Test vmalert role
- name: Test vmalert role
hosts: all
become: true
roles:
- "vmalert"

0 comments on commit c6478b8

Please sign in to comment.