51 lines
971 B
YAML
51 lines
971 B
YAML
---
|
|
|
|
# create pulse data directory
|
|
- name: "create pulse data directory"
|
|
ansible.builtin.file:
|
|
path: "/mnt/pulse/data"
|
|
state: "directory"
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0775"
|
|
|
|
|
|
# docker pull pulse
|
|
- name: "run pulse"
|
|
community.docker.docker_container:
|
|
|
|
# container_default_behavior
|
|
auto_remove: "no"
|
|
container_default_behavior: "no_defaults"
|
|
detach: "yes"
|
|
init: "no"
|
|
interactive: "no"
|
|
log_driver: "json-file"
|
|
log_options:
|
|
max-size: "5m"
|
|
max-file: "3"
|
|
memory: "0"
|
|
paused: "no"
|
|
privileged: "no"
|
|
pull: "always"
|
|
read_only: "no"
|
|
state: "started"
|
|
tty: "no"
|
|
|
|
# pulse
|
|
name: "pulse"
|
|
image: "docker.io/rcourtman/pulse:4.34.0"
|
|
image_name_mismatch: "recreate"
|
|
network_mode: "host"
|
|
restart_policy: "unless-stopped"
|
|
|
|
volumes:
|
|
- "/mnt/pulse/data:/data"
|
|
|
|
env:
|
|
|
|
# pulse
|
|
CONNECTION_TIMEOUT: "60"
|
|
|
|
# global
|
|
TZ: "{{ timezone }}"
|