Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple, perfect setup of a Linux machine via Ansible

License

NotificationsYou must be signed in to change notification settings

olivomarco/my-ansible-linux-setup

In 2020, having a Linux IaaS machine configured and setup should be easy and fast: after all, it's the basic task anybody has to do in order to start working on more-meaningful and productive activities.

However, this is not always the case: you work in different environments (different cloud providers, on-premises environments, lab environments) where you have different base images and different tools, and creating the very same machine is still quite a daunting - or at leasttime-consuming - task.

This project aims to solve that, by providing aboilerplate yet complete andeasy-to-use andeasy-to-customize way to spin up your own Linux machine.

Usage

You will needAnsible on your workstation in order to run this project, and you will need to first install a base Linux image on your target system. The target system can be a Debian-based system or an Ubuntu-based system, since theapt package is used.

You can start the fun with theinstall.sh script which takes in input the hostname to configure.

In the output, you will receive the passwords for the default user and theroot user.The script will add your local SSH keys as trusted keys for remote login, and will harden the Linux installation quite a bit.In the end, you will also have several utilities installed and a Docker daemon.

The playbook also uses theolivomarco/dotfiles repo in order to setup a custom and productive shell for the users of the system.

Parameters

Please note that some of the parameters provided by this template repoMUST BE CHANGED before running the script.

Customization starts by modifying files inthis folder. In particular, consider that:

  • inall.yml you must modify thedefault_username variable
  • inall.yml you must modify thedot_forward_email variable
  • thevault.yml is anansible-vault encrypted file (default password:secretpassword) which you must customize with your SMTP parameters

Final notes

You can, of course, customize everything and add your own tools and configurations:if you think you have found something useful which can be beneficial to any user using this package, please open a feature request and I will gladly evaluate it.

About

Simple, perfect setup of a Linux machine via Ansible

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp