From 259a73ae3503b394168977d698ae49a16314235a Mon Sep 17 00:00:00 2001 From: Houzhong Xu Date: Thu, 18 Sep 2025 03:41:14 +0000 Subject: [PATCH] Update inventory with dev1 host configuration - Added dev1 host to dev group for testing - Configured SSH key authentication for ben user - Tested Ansible playbook successfully on dev1 - System update completed with 2 changes --- ansible/inventory.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/inventory.ini b/ansible/inventory.ini index 7af37a2..1adeec9 100644 --- a/ansible/inventory.ini +++ b/ansible/inventory.ini @@ -1,7 +1,7 @@ +[dev] +dev1 ansible_host=dev1 ansible_user=ben ansible_become=yes ansible_become_pass=3131 + [servers] -# 添加您的服务器信息,例如: -# server1 ansible_host=192.168.1.10 ansible_user=root -# server2 ansible_host=192.168.1.11 ansible_user=ubuntu ansible_become=yes localhost ansible_connection=local [all:vars]