Get started with Automation with our tutorials on Ansible and Terraform.
This article explains how to disbale user accounts to prevent them logging in via SSH (for example). This will apply to password logins and key-based logins. This is a mini-HowTo demonstrating how to disable or expire a user using Ansible. Put the following into a file called “playbook-expire-user.yml”. — –
Read more
Ansible supports “variables” just like any scripting language. Actually, Ansible uses the YAML format and YAML supports variables. Confused, don’t be. It’s simple. You don’t need to know YAML to use Ansible and i bet you’ve already got things working with Ansible enough that you’re ready to start expanding your
Read more
This article explains step by step how to create (spin up) an EC2 instance within AWS using Ansible and a few extras. Unlike 100% of other articles out there, this one actually demonstrates how to do it. Pay attention to the date of this article because things DO change over
Read more
This playbook will add the script “myscript.sh” to the target machine(s) “/etc/cron.monthly” directory thereby having it run each month by cron. You can simply change the location to have it go into one of the other cron.x locations. I’ve used ansible version “ansible 1.9.4”. — – hosts: all sudo: yes
Read more
There are several popular search results for this answer but they all skip the important part – and are incorrect as a result. — – hosts: all sudo: yes tasks: – user: name=myuser comment=”My User” groups=wheel,group1,group2 append=yes This is where they are (and likely you are) going wrong. The “groups”
Read more
AGIX is a Linux only (well, 90%) service business so we spend every day installing, upgrading, changing and troubleshooting Linux servers of all types for clients across the world. For the past two years we’ve been using Puppet where suitable and have found it reasonably useful. But as time goes
Read more
This article demonstrates how to create an Ansible PlayBook that will add users to multiple Linux systems and add their public SSH key allowing them to login securely. Install Ansible on the host that you’ll use to target each of the Linux host you want the new users on. sudo
Read more
This article explains how to install the Puppet server (also known as the PuppetMaster) and client on a Redhat or CentOS server. Note that Puppet uses TCP ports 8140, 61613, and 443. First add the Puppet repo on both the puppet client and server systems. The following link has several
Read more