file /etc/ansible/hosts – or inventory file (configuration description) contains description of hosts that can be managed.
In case of BitrixVM Virtual Appliance we store only groups and hosts that are included into these groups.
The file /etc/ansible/hosts is separated by groups. Groups have roles, executed by servers. The same server can be located in several groups.
Example:
Код |
---|
# Bitrix VM default configuration group
[bitrix-hosts]
vm03 ansible_ssh_host=192.168.1.215
vm04 ansible_connection=local ansible_ssh_host=192.168.1.227
..
[bitrix-push]
vm03 ansible_ssh_host=192.168.1.215 |
The group [bitrix-hosts] contains all hosts that can be managed.
The group [bitrix-push] contains hosts that execute the role of push server. In this example: server vm03 acts as the instant message server.
files in catalogs /etc/ansible/host_vars/ and /etc/ansible/group_vars/ – personal server and groups settings accordingly.
Example:
Код |
---|
bx_connect: ipv4
bx_host: vm04
bx_hostname: vm04
bx_netaddr: 192.168.1.227 |