File tree Expand file tree Collapse file tree 10 files changed +41
-13
lines changed Expand file tree Collapse file tree 10 files changed +41
-13
lines changed Original file line number Diff line number Diff line change
1
+ skip_list:
2
+ - 'var-naming[no-role-prefix]'
Original file line number Diff line number Diff line change
1
+ name : ' Molecule Test'
2
+ on :
3
+ pull_request : { }
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ lint :
10
+ name : ' Test'
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : ' Checkout'
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Cache .venv directory
17
+ uses : actions/cache@v3
18
+ with :
19
+ path : .venv
20
+ key : ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}
21
+
22
+ - name : Converge
23
+ run : |
24
+ make init-venv
25
+
26
+ make molecule-converge
Original file line number Diff line number Diff line change 17
17
ansible.builtin.get_url :
18
18
url : " {{ goss_url }}"
19
19
dest : " {{ goss_bin }}"
20
- sha256sum : " {{ goss_sha256sum }}"
20
+ sha256sum : " {{ goss_sha256sum }}" # noqa: args[module]
21
21
mode : " u=rwx,go=rx"
22
22
register : download_goss
23
23
until : download_goss is succeeded
Original file line number Diff line number Diff line change 72
72
- not victoriametrics_is_installed.stat.exists or
73
73
victoriametrics_version not in victoriametrics_current_version.stdout
74
74
75
- - name : Upload VictoriaMetrics release binary
75
+ - name : Upload VictoriaMetrics release binary # noqa: no-handler
76
76
ansible.builtin.copy :
77
77
src : /tmp/vic-single/victoria-metrics-prod
78
78
dest : /usr/local/bin
82
82
when :
83
83
- archive_downloaded is changed
84
84
85
- - name : Download VictoriaMetrics utils
85
+ - name : Download VictoriaMetrics utils # noqa: no-handler
86
86
become : no
87
87
environment :
88
88
http_proxy : ' '
95
95
when :
96
96
- archive_downloaded is changed
97
97
98
- - name : Upload VictoriaMetrics release binaries
98
+ - name : Upload VictoriaMetrics release binaries # noqa: no-handler
99
99
ansible.builtin.copy :
100
100
src : " /tmp/vic-utils/{{ item }}"
101
101
dest : /usr/local/bin
Original file line number Diff line number Diff line change 1
1
---
2
- - hosts : all
3
- name : Test role
2
+ - name : Test role
3
+ hosts : all
4
4
become : true
5
5
roles :
6
6
- " single"
Original file line number Diff line number Diff line change 17
17
ansible.builtin.get_url :
18
18
url : " {{ goss_url }}"
19
19
dest : " {{ goss_bin }}"
20
- sha256sum : " {{ goss_sha256sum }}"
20
+ sha256sum : " {{ goss_sha256sum }}" # noqa: args[module]
21
21
mode : " u=rwx,go=rx"
22
22
register : download_goss
23
23
until : download_goss is succeeded
Original file line number Diff line number Diff line change 17
17
ansible.builtin.get_url :
18
18
url : " {{ goss_url }}"
19
19
dest : " {{ goss_bin }}"
20
- sha256sum : " {{ goss_sha256sum }}"
20
+ sha256sum : " {{ goss_sha256sum }}" # noqa: args[module]
21
21
mode : " u=rwx,go=rx"
22
22
register : download_goss
23
23
until : download_goss is succeeded
Original file line number Diff line number Diff line change 13
13
no_log : True
14
14
notify : Restart VMagent service
15
15
16
- - name : " Systemd | daemon-reload VMagent service"
16
+ - name : " Systemd | daemon-reload VMagent service" # noqa: no-handler
17
17
become : true
18
18
ansible.builtin.systemd :
19
19
daemon_reload : true
38
38
notify : Restart VMagent service
39
39
register : config_template
40
40
41
- - name : " Upstart | Enable vic-vmagent service"
41
+ - name : " Upstart | Enable vic-vmagent service" # noqa: no-handler
42
42
ansible.builtin.service :
43
43
name : " vic-vmagent"
44
44
enabled : " yes"
Original file line number Diff line number Diff line change 13
13
notify : Restart VMalert service
14
14
no_log : True
15
15
16
- - name : " Systemd | daemon-reload VMalert service"
16
+ - name : " Systemd | daemon-reload VMalert service" # noqa: no-handler
17
17
become : true
18
18
ansible.builtin.systemd :
19
19
daemon_reload : true
Original file line number Diff line number Diff line change 1
1
---
2
- - hosts : all
3
- name : Test vmalert role
2
+ - name : Test vmalert role
3
+ hosts : all
4
4
become : true
5
5
roles :
6
6
- " vmalert"
You can’t perform that action at this time.
0 commit comments