443 reputation
315
bio website
location Seattle, WA
age
visits member for 4 years, 2 months
seen Dec 21 at 0:11

Nov
18
awarded  Caucus
Jul
2
awarded  Curious
Feb
3
awarded  Yearling
Dec
28
comment How can I implement ansible with per-host passwords, securely?
In the hosts file, you should be able to specify ansible_ssh_user= and ansible_ssh_password= per host. These will be used when actually using ansible-playbook (not command line ansible).
Dec
28
answered Reusing tasks in Ansible
Dec
23
comment How can I implement ansible with per-host passwords, securely?
This may not be exactly what you're looking for, but on Ubuntu boxes I still use keys, i.e. putting my public key in /root/authorized_keys to get in directly as root. Obvious drawback is allowing root logins over ssh... I also disallow password logins over ssh and run fail2ban for added security.
Oct
28
answered recommendations for efficient offsite remote backup solution of vm's
Sep
16
awarded  Popular Question
Aug
26
awarded  Critic
Jul
1
comment Close/Quit All Screens with SSH
But, using byobu makes this very easy since it will show if you on login if existing / multiple sessions are open, and allow you to kill any/all of them.
Jun
19
answered Close/Quit All Screens with SSH
Jun
19
comment Bash: Call shell script but do not wait for return code
right after you fork the process, you can "capture" its PID with $!. E.g. mypid=$! . I recommend then using wait $mypid at some point in your script to ensure that the forked process ends before ending the script.
Jun
12
comment “while read line” returns early when calling ssh “mysql…”
It's the done 3< <(printf %s "$results") line.
Jun
12
comment “while read line” returns early when calling ssh “mysql…”
This solution doesn't seem to work at all. Bash just complains giving "syntax error". Bash version = GNU bash, version 4.2.42(1)-release
Jun
11
accepted “while read line” returns early when calling ssh “mysql…”
Jun
6
revised “while read line” returns early when calling ssh “mysql…”
added 73 characters in body
Jun
6
answered “while read line” returns early when calling ssh “mysql…”
Jun
6
comment “while read line” returns early when calling ssh “mysql…”
It is actually within double quotes. The single quotes themselves are also within the double quotes; the very reason why I used them there. The ssh command itself works great, it just for whatever reason ends the while read line loop.
Jun
6
revised “while read line” returns early when calling ssh “mysql…”
added 1 characters in body
Jun
6
comment “while read line” returns early when calling ssh “mysql…”
that's previously defined. I cleaned up portions of the code that have any specific details that aren't needed.