Playbooks

Playbooks are expressed in YAML format Each playbook is composed of one or more ‘plays’ in a list.

To Run Playbooks locally with out the SSH Keys:

Using Command line:

ansible-playbook --connection=local 127.0.0.1 playbook.yml

using inventory:

127.0.0.1 ansible_connection=local

Using Ansible Config file:

[defaults]
transport = local

Using Playbook Header

- hosts: 127.0.0.1
  connection: local