Displaying 1 - 3 of 3

Run a shell command on multiple servers over ssh simultaneously

If you have multiple Linux servers out there and have been managing them by hand, there's a better way. You have probably heard of Chef, Puppet, and Ansible, and might have heard that Chef and Puppet are a bit troublesome to get up and running. But there's a simpler way to just connect to a few of your Linux (or BSD) servers and run commands on them.

Example: Tell me what OS and version is running on all my servers

Step 1. Set up your ansible hosts file.

Quick version: Create the file named 'hosts' and put servername ansible_ssh_host=hostname in the...

Ansible in a nutshell and Ansible terms defined

Ansible is a Python script that sshes to your servers (requiring no daemon listening on the servers) and configures them according to "idempotence". Idempotency basically means you describe what state you want, Ansible figures out how to get to that state, versus you specifying what is run and how it is run. Thus you can "run" Ansible plays over and over and it does the "right thing" instead of repeating your commands. Ansible is really useful for repeatedly setting up servers which need to be set up the same way, a better approach than "ad hoc" configuring them over ssh in a shell with no...

Ansible tips and tricks

I wonder how many people in Vietnam know DevOps. Not everyone even agrees on what the term DevOps even means. There's no Vietnamese ops or devops community and very few people talking about it. But DevOps is something any full stack web developer needs to master nowadays, and it goes beyond being able to set up and sysadmin a Linux server.  Here I'll take devops to mean the procedures for setting up the servers which will run your organizations (web) applications, mostly in the cloud.

Ansible, Puppet, Chef: server orchestration tools using Ruby, except Ansible which...