Refactor ansible hosts.yml: Remove unused ansible_become_method for hosts

This commit is contained in:
2024-09-23 19:53:27 +08:00
parent 05f0945e7f
commit b82705c3a7
4 changed files with 49 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
backend:
hosts:
nfs:
ansible_host: 192.168.50.225
ansible_user: root
ansible_become_method: su
swarm:
ansible_host: 192.168.50.220
ansible_user: user
ansible_become_method: sudo
firewall:
ansible_host: 192.168.50.170
ansible_user: root
ansible_become_method: su
dev:
hosts:
dev302:
ansible_host: 192.168.1.10