Open patsevanton opened 2 years ago
@saravanan30erd Could you share inventory and playbook for multiple node setup ? Thanks
@patsevanton Actually I am using same configuration as it is. https://github.com/opensearch-project/ansible-playbook/blob/main/inventories/opensearch/group_vars/all/all.yml
only change I am doing is, editing the host
file for updating the nodes IP address details, thats all.
https://github.com/opensearch-project/ansible-playbook/blob/main/inventories/opensearch/hosts
It works fine, you can refer logs here
wait merge https://github.com/opensearch-project/ansible-playbook/pull/51 for full test this issue
wait merge #51 for full test this issue
Hi @patsevanton that PR is merged now you can test again. Thanks.
I tested again and again get this error
Inventory examples don`t have roles https://github.com/opensearch-project/ansible-playbook/blob/main/inventories/opensearch/hosts_centos#L7 https://github.com/opensearch-project/ansible-playbook/blob/main/inventories/opensearch/hosts_ec2-user#L7 https://github.com/opensearch-project/ansible-playbook/blob/main/inventories/opensearch/hosts_root_user#L7 https://github.com/opensearch-project/ansible-playbook/blob/main/inventories/opensearch/hosts_ubuntu#L7
But opensearch-multi-node.yml have code:
node.roles: [{{ hostvars[inventory_hostname]['roles'] }}]
In this PR https://github.com/opensearch-project/ansible-playbook/pull/13/files
inventories/opensearch/hosts without dashboard
quiestion: Is dashboard0 requirenment roles or not?
But opensearch-multi-node.yml have code:
node.roles: [{{ hostvars[inventory_hostname]['roles'] }}]
In this PR https://github.com/opensearch-project/ansible-playbook/pull/13/files
inventories/opensearch/hosts without dashboard
quiestion: Is dashboard0 requirenment roles or not?
@saravanan30erd
@patsevanton remove item "dashboard0" from "[os-cluster]"
[os-cluster]
master0
data0
data1
Describe the bug The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'roles'
Run playbook
Inventory
error:
Version
Server where ansible
Remote server