This repository contains automatic installation of common tech stuff: eg Docker, programing language, etc ...
You can use this to install easily tech stuff.
You need install Ansible to unlock this repository.
Here is instruction for Ansible installtion.
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
- You need create your own
own.yaml
file. - You can follow
local.yaml
ormy-ubuntu.yaml
as example. - In
host
, value islocal
- In
role
, pass array of tech stuff you need to install. All available to install are inroles
folder.
For example, I need to installdocker
, myown.yaml
looks like that:
---
- name: install docker
hosts: local
roles:
- docker
- You need create your own
hosts
file.hosts
file contains config of target machine that ansible runs automation task on.
For example, I want ansible to run automation task on my local machine, I need define[local]
partition for local connection.
[local]
localhost ansible_connection=local ansible_user=<user that ansible run on behalf>
- Finally, run this command
ansible-playbook -i hosts own.yml --ask-become-pass
Enter your sudo password, and see miracles.
You can configurate version of tech stuff you want to install in group_vars/all
.