Remove hardcoded user name
Right now the playbook and roles assume that all machines have single user name. This requirement makes it harder to use the playbook on different machines.
Ideally our Ansible playbooks should not hardcode any user names and Ansible should use username from SSH config instead. E.g.
Config ~/.ssh/config
:
Host rohan-resolver
User x
Host bench-player
User y
Ansible inventory:
iterator:
hosts:
mirkwood-resolver.local:
srv_threads: 2
srv_cpus: 2
dnsperf:
hosts:
test-perf.local:
cl_threads: 2
cl_cpus: 3
Ansible will just take hostname from inventory and try to SSH in - and SSH client will do the right thing as configured in ~/.ssh/config
.