Ansible Playbooks

In comparison with ad-hoc commands, playbooks are used in complex scenarios, and they offer increased flexibility. Playbooks use YAML format, so there is not much syntax needed, but indentation must be respected. Ansible playbooks tend to be more of a configuration language than a programming language.

Czytaj dalej Ansible Playbooks

SSH Authentication Refused: Bad Ownership or Modes for Directory

Tailing /var/log/secure on the target machine is a lot more useful :

 

 

Finally we’re getting somewhere – bad ownership or modes for directory /home/dave/.ssh.

SSH doesn’t like it if your home or ~/.ssh directories have group write permissions. Your home directory should be writable only by you, ~/.ssh should be 700, and authorized_keys should be 600 :

 

 

You can also get around this by adding StrictModes off to your ssh_config file, but I’d advise against it – fixing permissions is the way to go.

Ansible – Inventory

Ansible is an open source configuration management and orchestration utility. It can automate and standardize the configuration of remote hosts and virtual machines. Its orchestration functionality allows Ansible to coordinate the launch and graceful shutdown of multitiered applications. Because of this, Ansible can perform rolling updates of multiple systems in a way that results in zero downtime.
Czytaj dalej Ansible – Inventory