From 092b456b67df8dc3803c4feaf884006d669a8f71 Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Tue, 11 Aug 2026 13:11:55 +0400 Subject: [PATCH] REFACTOR: maintain playbook works --- inventory/hosts.yaml | 6 +++++- playbooks/maintain.yaml | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/inventory/hosts.yaml b/inventory/hosts.yaml index 3fd09b0..213afae 100644 --- a/inventory/hosts.yaml +++ b/inventory/hosts.yaml @@ -1,5 +1,9 @@ --- physical: hosts: - 192.168.0.45: + localhost: + ansible_become_password: "{{ ansible_become_passwd }}" + ansible_connection: local + ansible_python_interpreter: "{{ ansible_playbook_python }}" + 192.168.0.98: ansible_become_password: "{{ ansible_become_passwd }}" diff --git a/playbooks/maintain.yaml b/playbooks/maintain.yaml index 1642953..aece97e 100644 --- a/playbooks/maintain.yaml +++ b/playbooks/maintain.yaml @@ -12,9 +12,9 @@ roles: # Check the Internet connection # Check free disk space - ../roles/common_healthcheck + - ../roles/common_healthcheck # Update the system - ../roles/update_system + - ../roles/update_system # Harden SSH - we must be sure that the last version of ssh configs are distributed - ../roles/harden_ssh + - ../roles/harden_ssh # Update configs - omz, nvim, ranger and so on. Distribute the last version of those configs