You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
876 B

7 years ago
7 years ago
  1. # This is the default ansible 'hosts' file.
  2. #
  3. # It should live in your Git repository, and there should be a link from /etc/ansible/hosts:
  4. # /etc/ansible/hosts -> /path/to/myAnsibleProject/hosts
  5. #
  6. # - Comments begin with the '#' character
  7. # - Blank lines are ignored
  8. # - Groups of hosts are delimited by [header] elements
  9. # - You can enter hostnames or ip addresses
  10. # - A hostname/ip can be a member of multiple groups
  11. [lxc_templates]
  12. #debian10 ansible_host=debian10.dedic106-dhcp.dimti.ru ansible_user=root
  13. debian10 ansible_host='{{ lxc_host }}'
  14. [anygroup]
  15. server1 ansible_host=192.168.0.1
  16. server2 ansible_host=192.168.0.2
  17. server3 ansible_host=192.168.0.3
  18. server4 ansible_host=192.168.0.4
  19. # Add your own groups here. Hosts can be added to multiple groups like so:
  20. # [anothergroup]
  21. # server[1:3]
  22. # anotherserver ansible_host=192.168.0.10