Ansible Role for Linux Server Configuration.
Different actions are available by changing action
variable. For instance:
- name: Create VM
hosts: localhost
roles:
- role: linux-ansible
vars:
action: grow_lvm
lvmap:
"/": "+100%FREE"
...
The following actions are available:
grow_lvm
: Executes needed tasks after Linux Server deployment.setup_hostname
: Setups hostname and resets /etc/hosts.upgrade_packages
: Upgrades all packages and distribution. Also, can install packages you want.install_docker
: Installs Docker Engine.post_deploy
: Groups needed actions to configure a newly created machine.