Commit 901aacb1 authored by nanahira's avatar nanahira

add system ssh port

parent 97e38d76
...@@ -85,6 +85,7 @@ class InventoryBuilder { ...@@ -85,6 +85,7 @@ class InventoryBuilder {
const rawHostsForSwitch = rawHosts.map(rh => { const rawHostsForSwitch = rawHosts.map(rh => {
const hostVars = JSON.parse(JSON.stringify(rh[1])); const hostVars = JSON.parse(JSON.stringify(rh[1]));
hostVars.ansible_ssh_host = hostVars.address; hostVars.ansible_ssh_host = hostVars.address;
hostVars.ansible_ssh_port = this.hosts[rh[0]].sshSystem || 22;
return [`switch-${rh[0]}`, hostVars]; return [`switch-${rh[0]}`, hostVars];
}); });
const switchHosts = Object.fromEntries(rawHostsForSwitch); const switchHosts = Object.fromEntries(rawHostsForSwitch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment