Ansible Role: Server Common
Installs commonly required utilities and configurations for TEN7 hosting.
Available variables are listed below, along with default values (see
Setting the hostname
You can set the server hostname with
Installing packages from the system manager
This role installs several packages by default from the system package manager
vars/ folder). If you want to install additional packages, set the
server_common_apt_packages_extra: - "packagename" - "anotherpackage" - "yet-more-packages"
If you want to override the default list of packages, set the
Installing packages from the Python pip package manager
Sometimes it's better to install Python dependencies directly from pip. This
role already installs some Python dependencies by default (see the
folder). To install additional packages from pip, set the
server_common_pip_packages_extra: - "stuff" - "things" - "junk"
You can also override the default list by setting the
Set the localhost entry in the global inventory file
On some distributions, installing Ansible does not include the creation of the global inventory file, leading to an annoying warning message. This role creates the inventory file, setting an item for localhost.
- hosts: all vars: server_common_hostname: "your-hostname.example.com" server_common_apt_packages_extra: - "mysql-common" server_common_pip_packages_extra: - "linode-api" roles: - ten7.server-common
TEN7 Interactive is a web agency based out of Minneapolis, MN.