Ansible: Difference between revisions
From DWIKI
m (→Links) |
mNo edit summary |
||
Line 6: | Line 6: | ||
*[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] | *[https://serversforhackers.com/an-ansible-tutorial An Ansible Tutorial] | ||
*[https://github.com/chase/vim-ansible-yaml better syntax highlighting for vim] | |||
=Quickstart= | =Quickstart= | ||
On server as root create key: | On server as root create key: |
Revision as of 14:43, 27 October 2015
Configuration management
Links
- Homepage
- Adding iptables Rules With Ansible
- Going Deeper into Ansible Playbooks
- An Ansible Tutorial
- better syntax highlighting for vim
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>