mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +00:00
c1b4f914cb
Re-created the branch to clean up the excessive number of commits :)
27 lines
633 B
YAML
27 lines
633 B
YAML
###### Create
|
|
- name: Get docker group id
|
|
group:
|
|
name: docker
|
|
register: docker_group
|
|
|
|
- name: Netdata Docker Container
|
|
docker_container:
|
|
name: netdata
|
|
hostname: "{{ ansible_nas_hostname }}.{{ ansible_nas_domain }}"
|
|
image: netdata/netdata
|
|
state: started
|
|
pull: true
|
|
ports:
|
|
- "19999:19999"
|
|
volumes:
|
|
- "/proc:/host/proc:ro"
|
|
- "/sys:/host/sys:ro"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
env:
|
|
PGID: "{{ docker_group.gid }}"
|
|
capabilities:
|
|
- SYS_PTRACE
|
|
security_opts:
|
|
- apparmor:unconfined
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|