https://github.com/programmer-ke/ansible-server-init
Initializes a newly provisioned server with a non-root user and latest system updates
https://github.com/programmer-ke/ansible-server-init
Last synced: 4 months ago
JSON representation
Initializes a newly provisioned server with a non-root user and latest system updates
- Host: GitHub
- URL: https://github.com/programmer-ke/ansible-server-init
- Owner: programmer-ke
- License: mit
- Created: 2017-01-10T06:44:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-11T10:53:03.000Z (over 9 years ago)
- Last Synced: 2025-11-07T11:29:37.687Z (7 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-server-init
Initializes a newly provisioned ubuntu server with a non-root user and latest system
updates
Variables required are:
`user` - The non-root user to be created
`password` - The crypted password for the user
(see: https://docs.ansible.com/ansible/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module)
In addition, a file `authorized_keys` needs to be provided under the `files` directory
containing ssh public keys for persons authorized to log in as the created user
An example playbook `init-server.example.yml` that uses this role is provided.