pkgsrc-wip/ansible/MESSAGE

51 lines
1.3 KiB
Plaintext

===========================================================================
$NetBSD: MESSAGE,v 1.0 2016/02/24 22:39:40 tty Exp $
First step before using Ansible, you need a configuration file ansible.cfg
in the current working directory or ~/.ansible.cfg in home directory or
${PKG_SYSCONFDIR}/ansible/ansible.cfg.
You can find an example here:
. /usr/pkg/share/examples/ansible/ansible.cfg
To manage your systems you need an inventory file.
The default value can be modified in ansible.cfg.
You can find an example here:
. /usr/pkg/share/examples/ansible/hosts
If you use Ansible to manage systems other than NetBSDs, then you must
set the Python interpreter in your inventory variables.
Example:
[netbsd]
host1
host2
[debian]
host1
host2
[debian:vars]
ansible_python_interpreter=/usr/bin/python2.7
If you use plugins other than those included with Ansible you might
need to set similar variables for bash, perl or ruby, depending on how
the plugin was written.
Example:
...
[debian:vars]
ansible_bash_interpreter=/bin/bash
ansible_perl_interpreter=/usr/bin/perl
ansible_ruby_interpreter=/usr/bin/ruby
...
Links:
- http://docs.ansible.com
- http://docs.ansible.com/ansible/playbooks_best_practices.html
- irc://irc.freenode.net/ansible
===========================================================================