Refactor dev inventory: Add dev301 and dev302 hosts

This commit is contained in:
2024-09-22 21:47:18 +08:00
parent 1f6ddc377c
commit 7f94212785
7 changed files with 101 additions and 14 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
# Add to Hosts File (change ansible_user if required)
```
[all:vars]
ansible_user='ubuntu'
ansible_user='user'
ansible_become=yes
ansible_become_method=sudo
ansible-playbook site.yaml -i inventory/hosts.ini --key-file ~/.ssh/id_rsa -K
```