eletrotupi / tcc/ commit / d6f84ea

deploy: keep the host address and login user out of the repo

The ansible inventory hardcoded the server address and login user, which have
no business being versioned. Untrack the real inventory, commit a placeholder
example beside it, and leave the real file in place locally where it is
ignored.
Pedro Lucas Porcellis porcellis@eletrotupi.com · 1 month ago d6f84ea226f1c1cc98dd073943b98986f74164ef Browse files
Parents da87ae9
Changed files
2
Additions
+6
Deletions
-6
/dev/null → ansible/inventory/hosts.example.yml
1 +
all:
2 +
  hosts:
3 +
    vps:
4 +
      ansible_host: 203.0.113.10          # your server's address
5 +
      ansible_user: youruser
6 +
      ansible_ssh_private_key_file: ~/.ssh/id_ed25519
ansible/inventory/hosts.yml → /dev/null
1 -
all:
2 -
  hosts:
3 -
    vps:
4 -
      ansible_host: 172.237.61.17
5 -
      ansible_user: eletrotupi
6 -
      ansible_ssh_private_key_file: ~/.ssh/id_ed25519