apt
The apt module allows you to install an APT package on the target server.
Arguments
package: a string that contains the name of the package to be installed.action: a string that specifies the action to be taken on the package. (default isinstall. Supported actions:install,remove,purge,upgrade,autoremove)update_cache: a boolean that indicates whether to update the package cache before installing the package. (default isfalse)install_recommends: a boolean that indicates whether to install recommended packages. (default istrue)
Usage Example
local task = {
name = "Install apache2",
komandan.modules.apt({
package = "apache2",
update_cache = true
})
}
komandan.komando(host, task)