Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dotheevo/ansible-debian

Post fresh install setup automated
https://github.com/dotheevo/ansible-debian

Last synced: 3 days ago
JSON representation

Post fresh install setup automated

Awesome Lists containing this project

README

        

# Ansible Debian

![Logo](https://i.imgur.com/yAyr3S2.png)

Debian variation of my [ansible-arch](https://github.com/DoTheEvo/ansible-arch)

# Overview

The objective is to have an easy way to have fresh Debian installation setup
the way one desires. Reliably and with the least amount of effort.
For this Ansible is used.

Ansible is an automation platform.

It executes tasks from `playbooks` on machines listed in `inventory`.
Open source, developed by Red Hat.
Written and dependent on python. Uses YAML configuration files.
Agent-less, controlled machines need just ssh+python (linux) or
winrm+powershell (windows).

Praised for simplicity.

This repo aims to be easily customizable, playbooks being as simple as possible.
One should be able to look at them, see how stuff is done and make own changes.

# How to execute

install Debian, log in to a non root account that can sudo

* install ansible and git

`sudo apt install ansible git python-is-python3`
* clone this repo

`git clone https://github.com/DoTheEvo/ansible-debian.git`
* enter the directory

`cd ansible-debian`
* run the playbooks you want
* `ansible-playbook -u $USER -K playbook_core.yml`
* `ansible-playbook -u $USER -K playbook_zsh.yml`
* `ansible-playbook -u $USER -K playbook_docker.yml`
* `ansible-playbook -u $USER -K playbook_caddy_kuma_ntfy.yml`

yes, you write `$USER` there, which puts in the user you are logged in

the `-K` is short for `--ask-become-pass` which will prompt for password

**Removal**

After running playbooks it be good to remove ansible package
and bunch of its dependencies. Saves \~600MB and noise during updates.

* `sudo apt remove ansible ansible-core`