News for hackers. Stuff that matters.
Re:Getting Started with Ansible by depingus on Tuesday November 17, 2020 @09:55AM (#25124367)
I use Ansible to provision VMs on my "play" server at home (so I'm hardly an expert). That part of my playbook basically does:

* Prompt for username and password

* Create user

* Add it to the wheel group

* Copy over authorized keys

* Edit sshd_config with:

   PermitRootLogin no

   PasswordAuthentication no

   ChallengeResponseAuthentication no
* Restart sshd
Re:Getting Started with Ansible by kenny87 on Tuesday November 17, 2020 @08:32PM (#25132160)
copy pasted this from gitlab recently to provision a packer image https://gitlab.com/gitlab-org/gitlab-omnibus-builder/blob/ma...