FEATURE: new host added, list of services to check added to hosts. Services checker added

This commit is contained in:
2026-08-23 14:29:45 +05:00
parent d833004dee
commit 9200553be6
3 changed files with 21 additions and 0 deletions
+12
View File
@@ -5,13 +5,25 @@ physical:
ansible_become_password: "{{ ansible_become_passwd }}"
ansible_connection: local
ansible_python_interpreter: "{{ ansible_playbook_python }}"
services_to_run:
192.168.0.6:
ansible_become_password: "{{ ansible_become_passwd }}"
services_to_run:
192.168.0.8:
ansible_become_password: "{{ ansible_become_passwd }}"
services_to_run:
192.168.0.12:
ansible_become_password: "{{ ansible_become_passwd }}"
services_to_run:
192.168.0.16:
ansible_become_password: "{{ ansible_become_passwd }}"
services_to_run:
192.168.0.39:
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
+2
View File
@@ -18,3 +18,5 @@
- ../roles/harden_ssh
# Update configs - omz, nvim, ranger and so on. Distribute the last version of those configs
- ../roles/update_configs
# Make sure that the services that are supposed to run are running
- ../roles/check_services
+7
View File
@@ -0,0 +1,7 @@
---
- name: Make sure required services are running
ansible.builtin.service:
name: "{{ item.name }}"
state: started
loop: "{{ services_to_run }}"