FEATURE: new host added, list of services to check added to hosts. Services checker added
This commit is contained in:
@@ -5,13 +5,25 @@ physical:
|
|||||||
ansible_become_password: "{{ ansible_become_passwd }}"
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
ansible_connection: local
|
ansible_connection: local
|
||||||
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
||||||
|
services_to_run:
|
||||||
192.168.0.6:
|
192.168.0.6:
|
||||||
ansible_become_password: "{{ ansible_become_passwd }}"
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
|
services_to_run:
|
||||||
192.168.0.8:
|
192.168.0.8:
|
||||||
ansible_become_password: "{{ ansible_become_passwd }}"
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
|
services_to_run:
|
||||||
192.168.0.12:
|
192.168.0.12:
|
||||||
ansible_become_password: "{{ ansible_become_passwd }}"
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
|
services_to_run:
|
||||||
192.168.0.16:
|
192.168.0.16:
|
||||||
ansible_become_password: "{{ ansible_become_passwd }}"
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
|
services_to_run:
|
||||||
192.168.0.39:
|
192.168.0.39:
|
||||||
ansible_become_password: "{{ ansible_become_passwd }}"
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
|
services_to_run:
|
||||||
|
ai-host:
|
||||||
|
ansible_host: 192.168.0.50
|
||||||
|
ansible_become_password: "{{ ansible_become_passwd }}"
|
||||||
|
services_to_run:
|
||||||
|
- coder_ai
|
||||||
|
|
||||||
|
|||||||
@@ -18,3 +18,5 @@
|
|||||||
- ../roles/harden_ssh
|
- ../roles/harden_ssh
|
||||||
# Update configs - omz, nvim, ranger and so on. Distribute the last version of those configs
|
# Update configs - omz, nvim, ranger and so on. Distribute the last version of those configs
|
||||||
- ../roles/update_configs
|
- ../roles/update_configs
|
||||||
|
# Make sure that the services that are supposed to run are running
|
||||||
|
- ../roles/check_services
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Make sure required services are running
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
state: started
|
||||||
|
loop: "{{ services_to_run }}"
|
||||||
Reference in New Issue
Block a user