Failed to start victoria-storage.service: Unit docker.service not found.
patsevanton opened this issue · 2 comments
patsevanton commented
Hello!
I try install and get error
Playbook:
---
- hosts: vmstorage,vminsert,vmselect
collections:
- victoriametrics.cluster
become: true
roles:
- victoriametrics.cluster.victoria_cluster
Inventory:
[vmstorage]
vmstorage0 ansible_host=xxxx
vmstorage1 ansible_host=xxxx
vmstorage2 ansible_host=xxxx
vmstorage3 ansible_host=xxxx
[vminsert]
vminsert0 ansible_host=xxx
vminsert1 ansible_host=xxxx
[vmselect]
vmselect0 ansible_host=xxxx
vmselect1 ansible_host=xxxx
[vmstorage:vars]
vm_role=victoria-storage
[vminsert:vars]
vm_role=victoria-insert
[vmselect:vars]
vm_role=victoria-select
[all:vars]
ansible_user=ubuntu
ansible_ssh_private_key_file=~/.ssh/id_rsa
Error:
RUNNING HANDLER [victoriametrics.cluster.victoria_cluster : restart service victoria-storage] ******************************************************************************************
Tuesday 29 March 2022 20:42:52 +0600 (0:00:00.000) 0:00:20.369 *********
fatal: [vmstorage3]: FAILED! => changed=false
msg: |-
Unable to start service victoria-storage: Failed to start victoria-storage.service: Unit docker.service not found.
fatal: [vmstorage0]: FAILED! => changed=false
msg: |-
Unable to start service victoria-storage: Failed to start victoria-storage.service: Unit docker.service not found.
fatal: [vmstorage1]: FAILED! => changed=false
msg: |-
Unable to start service victoria-storage: Failed to start victoria-storage.service: Unit docker.service not found.
fatal: [vmstorage2]: FAILED! => changed=false
msg: |-
Unable to start service victoria-storage: Failed to start victoria-storage.service: Unit docker.service not found.
zekker6 commented
Please, take a look at example playbook here - https://github.com/VictoriaMetrics/ansible-playbooks/blob/master/playbooks/monitoring.yml
It is required to install docker before running "cluster" role.
patsevanton commented
I will check.
I created PR #13