Portainer - the coolest UI for Docker http://portainer.io/
This role installs Portainer using Docker container
- Ensure docker-py is present using pip
- Remove existing container [if
remove_existing_container: true
] - Remove persistent data [if
remove_persistent_data: true
] - Deploy Portainer container to host [define persistent_data_path]
- Configure Admin user password
- Generate authentication token
- Define endpoints [DICT | list]
- Configure Portainer settings [Jinja2 template]
- Configure registry [Jinja2 template]
curl
name | description | default |
---|---|---|
configure_settings | override default portainer settings with template | false |
configure_registry | configure a docker registry for Portainer to use | false |
remove_persistent_data | remove the persistent data directory on the host | false |
remove_existing_container | remove an existing container named 'portainer' | false |
persistent_data_path | path that will be used to store persistent data | /opt/portainer:/data |
auth_method | use LDAP or standalone [2 for ldap, 1 for standalone] | |
version | portainer version to use | at the time of commiting 'develop' is the version that supports LDAP |
See main.yml under 'defaults' for a complete list |
ansible-playbook -i myinventory ./playbooks/deploy-portainer.yml
---
- hosts: myhosts
become: true
vars_files:
- vars/portainer.yml
roles:
- portainer