Ansible

Ansible is a configuration management system written in Python. It can be used for automating machine deployments.

Emerge
Install :

Configuration
The app-admin/ansible-1.9.4 ebuild will not generate the basic configuration. The default inventory file is named hosts should be in the /etc/ansible directory

This file contains the managed computers organized in groups.

With  and   remote users and ssh ports can be specified per hosts. From 2.0 version they are deprecated, use  and   instead.

Roles for Gentoo
Over 40 roles specifically for Gentoo can be found in the https://github.com/gentoo-ansible project.

Usage
Check is ansible can manage remote machine with given user:

Get info from remote machine, what can be used later in playbooks:

Run on evapc under myuser via :

The command can be used to read module documentation. For example, to list available modules:

To print out info about the ping module: