shlogg · Early preview
Daniel Pepuho @danielcristho

Install Docker Using Ansible Playbook

Install Docker using Ansible Playbook: setup Ansible, create playbook.yml & roles, test & run with syntax check & inventory file.

Long time no see, now i will show you how to install Docker using Ansible Playbook. Let's start!!!

  
  
  Setup

First, you need to install Ansible. Just follow this link to install Ansible on your operating system installation guide.
After installation, create new directory called ansible-docker.

$ mkdir ansible-docker && cd ansible-docker

    
    

    
    




Create a new file called ansible.cfg as the Ansible configuration setting and then define the inventory file.

[defaults]
inventory = hosts
host_key_checking = True
deprecation_warnings = False
collections = ansible.posix, commu...