Ansible playbooks written for my own purposes & training.
- Project name
- Table of contents
- General info
- install-docker
- create-nfs-share
- mount-nfs-share
- install-openvpn-server
- provision-node-exporter
- role: vm_configuration
- role: bash_customization
Repo contains ansible playbooks and roles used for automate tasks on virtual machines.
Playbook is installing docker & docker compose with additional customizations:
- adding docker repo,
- installation of docker,
- adding user to docker group,
- installation of docker-compose,
- configuration & start of service
Playbook creates a nfs-share:
- basing on external role,
- install role:
ansible-galaxy collection install ansible.posix
- install role:
- create vg and lv from already attached pv,
- mount new volume an add entry to /etc/fstab,
- create exports
Playbook mounts existing nfs-share:
- basing on external role,
- install role:
ansible-galaxy collection install ansible.posix
- install role:
- mount nfs an add entry to /etc/fstab
Playbok sets-up Openvpn server:
- install service via shell script,
- create initial user and download certificate
Playbook creates a service node-exporter to provide metrics:
- basing on external role,
- install role:
ansible-galaxy collection install prometheus.prometheus
- install role:
- customizations added (TLS)
Role performs basic configuration on VM:
- install required software,
- create technical user,
- create default user,
- make hardening on SSH service,
- configure SELinux and firewall
Role performs basic configuration on VM:
- installation of required software,
- configure .bash_aliases,
- configure .bashrc,
- configure vim,
- configure tmux