Ansible: Difference between revisions

From DWIKI
(Created page with "Configuration management =Links= *[http://www.ansible.com/home Homepage] =Quickstart= On server as root create key: ssh-keygen (go for defaults) and then get content of ~...")
 
Line 3: Line 3:
=Links=
=Links=
*[http://www.ansible.com/home Homepage]
*[http://www.ansible.com/home Homepage]
 
*[http://www.hashbangcode.com/blog/adding-iptables-rules-ansible Adding iptables Rules With Ansible]


=Quickstart=
=Quickstart=

Revision as of 13:35, 30 March 2015

Configuration management

Links

Quickstart

On server as root create key:

ssh-keygen

(go for defaults) and then get content of ~/.ssh/id_rsa.pub in your copypastebuffer

On 'clients' edit /etc/ssh/sshd_config to

PermitRootLogin within-password

and restart sshd

Edit/create ~root/.ssh/authorized_keys and add:

from="ip.of.ansible.server" <paste public key here>