From Alpine Linux
Revision as of 09:47, 22 January 2013 by Fab (talk | contribs) (First test)
Jump to: navigation, search

ansible is a simple configuration management, deployment, task-execution, and multinode orchestration framework. It uses SSH for the communication between the involved systems, no server or client daemons are needed, and no additional software on client boxes is required.

Installation of ansible

ansible is available in testing.

apk add ansible -U -X --allow-untrusted

Setup SSH

For every system you want to manage, you need to have the SSH key in the authorized_keys file of the target system.

ssh-copy-id -i ~/.ssh/ root@[IP of the target system]

Setup hosts

Add all your remote systems to /etc/ansible/hosts. For details, please refer to Hosts and Groups in the ansible documentation.

Contents of /etc/ansible/hosts

First test

$ ansible all -m ping -u you --sudo