This action groups other actions needed when a new machine is deployed:
upgrade_packages
: Upgrades all packages and distribution.grow_lvm
: Executes needed tasks after Linux Server deployment.setup_hostname
: Setups hostname and resets /etc/hosts.
NOTES:
- Only Ubuntu and Debian are supported
- This action reboots the machine.
Using this action, you will be able to set the following variables:
lvmap
: LVM map with desired sizes. Note: size will be allocated iteratively so last partition may always be+100%FREE
.lvmap_ignore_errors
: Ignore errors when extending logical volumes. Default: no.install_packages
: Extra packages you want to be installed.
- role: linux-ansible
vars:
action: post_deploy
lvmap:
"/": "+100%FREE"
install_packages:
- vim