mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-16 08:48:04 +00:00
3da19e5708
* Rejig of playbook to load roles from ansible-galaxy * Remove ansible-nas role and move tasks to tasks directory * Add InfluxDB/Telegraf/Grafana for monitoring & dashboards * Automatically configure InfluxDB as a datasource in Grafana * Switch to ZFS Docker driver * Add note about switching to overlay2 Docker driver if required
22 lines
509 B
YAML
22 lines
509 B
YAML
---
|
|
- name: Create Portainer Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ portainer_data_directory }}"
|
|
|
|
- name: Portainer Docker Container
|
|
docker_container:
|
|
name: portainer
|
|
image: portainer/portainer
|
|
pull: true
|
|
volumes:
|
|
- "{{ portainer_data_directory }}:/data:rw"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
ports:
|
|
- "9000:9000"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
|