If you want to return the hostname / IP, then it will be
task :configure do
on roles(:app), in: :parallel do |server|
p server.hostname # server hostname should be in here
end
end
If you would like to access custom properties, like :name
in this particular case, they are stored in the properties
hash of the server
configuration object: just use server.properties.name
instead of server.hostname
.