Skip to content

Minimum Viable Automation

Just enough automation to make life easier, not more complicated

  • About the Guides

Use Docker to run a MySQL Database Server for Development

Setup a simple Vagrant box for Ansible examples

Managing users accounts with Ansible

Use Ansible to create user accounts and setup ssh keys

21st March 201821st March 2018 Paul Bennett-FreemanDocker

Use Docker to run a MySQL Database Server for Development

When you need to run a MySQL database as the backend for an application it’s not great to have to install the server directly on your machine for each project so this is a perfectContinue reading

23rd December 2017 Paul Bennett-FreemanVagrant

Setup a simple Vagrant box for Ansible examples

To setup a simple Vagrant box for Ansible experiments, we first need to make sure we have both VirtualBox and Vagrant installed. Both are simply a case of downloading the file and clicking to install.Continue reading

21st December 201723rd December 2017 Paul Bennett-FreemanAnsible, Viable Guides

Managing users accounts with Ansible

  • defining expanding the vars to have multiple properties per item to add groups per user.
  • using user state for a method to disable users accounts.
  • Update the servers SSH config, and add a notify rule so sshd is restarted if required.
17th December 201723rd December 2017 Paul Bennett-FreemanAnsible, Minimum Guides

Use Ansible to create user accounts and setup ssh keys

  • Create a list of user names, using Ansible vars
  • Create a user account for each user name with the Ansible module users and with_items.
  • Add each user’s ssh public key to the account with Ansible authorized_key
  • Modify /etc/sudoers so the users can use sudo without entering a password

Recent Posts

  • Use Docker to run a MySQL Database Server for Development
  • Setup a simple Vagrant box for Ansible examples
  • Managing users accounts with Ansible
  • Use Ansible to create user accounts and setup ssh keys

Guides, Tutorials, and Examples

  • Ansible
    • Minimum Guides
    • Viable Guides
  • Docker
  • Vagrant

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress | Theme: Oria by JustFreeThemes.