Ansible: Difference between revisions
From DWIKI
No edit summary |
m (→Links) |
||
Line 5: | Line 5: | ||
*[http://www.hashbangcode.com/blog/adding-iptables-rules-ansible Adding iptables Rules With Ansible] | *[http://www.hashbangcode.com/blog/adding-iptables-rules-ansible Adding iptables Rules With Ansible] | ||
*[http://cloudacademy.com/blog/going-deeper-into-ansible-playbooks/ Going Deeper into Ansible Playbooks] | *[http://cloudacademy.com/blog/going-deeper-into-ansible-playbooks/ Going Deeper into Ansible Playbooks] | ||
*[https://serversforhackers.com/an-ansible-tutorial An Ansible Tutorial] | |||
=Quickstart= | =Quickstart= |
Revision as of 20:20, 30 April 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 without-password
and restart sshd
Edit/create ~root/.ssh/authorized_keys and add:
from="ip.of.ansible.server" <paste public key here>
FAQ
Show all host variables
ansible -m setup <hostname>