Getting sudo with ansible on Debian

preview_player
Показать описание
Getting started using ansible. In this example we will install sudo with ansible on Debian. The script will install all dependencies required and add a user to the sudo group.

Git repository:

Kubernetes at scale managed for you!
Use DigitalOcean Cluster AutoScaler to scale your clusters to seamlessly ensure performance during peak times.

Join the channel to get access to more perks:

Or visit my blog at:

Outro music: Sanaas Scylla

#linux #devops #ansible
Рекомендации по теме
Комментарии
Автор

I have wanted to learn about Ansible for a while, but I really only ever have one machine at a time. After I upgrade to a new machine, I typically decommission the old one as soon as my data is transferred (I usually upgrade once my machine is unable to satisfactorily run what I need it to run). I picked up a book on Ansible as part of a Humble Book Bundle at some point, but I haven't really cracked it open.

On my current project, they had a Vagrant script to create a local Virtualbox VM cluster for testing, which used Ansible for configuration, but those Ansible scripts are based on what they use in their real production environment, so they're pretty complex and not easy for a total newbie to decipher. Things like installing root certificates, updating OS packages, installing Docker and other dependencies, configuring user passwords and kernel parameters, creating a Docker swarm... probably pretty typical stuff, but when you don't even know what the Ansible script file hierarchy looks like... pretty dense stuff :)

Thanks for the simple introduction, this made it look a lot more accessible, and hopefully I'll get a chance to look into it more at some point.

I know the real power is in configuring a network of machines, but I have thought about using it as something of an "infrastructure as code" to just configure my own machine, for the cases where I need to reinstall or when I upgrade to new hardware ... but then I wonder if getting the base system to a point of being able to run the Ansible scripts would take just as long as setting everything else up manually...

aaronperl