/install_docker_centos

This play is for installing docker and portainer on a centos host.

Primary LanguageYAMLMIT LicenseMIT

Install Docker CE and Portainer (CentOS Host Only)

Docker Portainer Centos playbook GitHub last commit GitHub repo file count GitHub top language GitHub

Purpose

This play is for installing docker (community edition) and portainer on a Centos hosts only

Requirements

collections:

  • community.docker

Role Variables

Default role variables for the install_portainer role are listed below (see defaults/main.yml)

centos_baseurl: https://download.docker.com/linux/centos/docker-ce.repo
docker_packages:
  - docker-ce
  - docker-ce-cli
  - containerd.io
  - docker-compose-plugin
docker_users:
  - ansible

Default role variables for the install_portainer role are listed below (see defaults/main.yml)

dockerhub_user: <value>
dockerhub_pass: <value>

Dependencies

None

Example Playbook

    - hosts: all
      become: true
      roles:
        - install_docker_centos
        - install_portainer

Author Information

This playbook was created in 2022 by Lee Woodhouse