27 lines
799 B
YAML
27 lines
799 B
YAML
|
# vim: ft=yaml.ansible
|
||
|
---
|
||
|
- name: Create Monero node volume directory
|
||
|
ansible.builtin.file:
|
||
|
name: "{{ services.monerod.volume }}"
|
||
|
owner: '1000'
|
||
|
mode: u=rwx,g=rx,o=rx
|
||
|
state: directory
|
||
|
|
||
|
- name: Deploy Monero node Docker container
|
||
|
community.docker.docker_container:
|
||
|
name: monerod
|
||
|
state: "{{ 'absent' if down is defined and down else 'started' }}"
|
||
|
restart: "{{ restart is defined and restart }}"
|
||
|
recreate: "{{ recreate is defined and recreate }}"
|
||
|
image: sethsimmons/simple-monerod:{{ services.monerod.version }}
|
||
|
restart_policy: always
|
||
|
default_host_ip: ''
|
||
|
networks:
|
||
|
- name: services
|
||
|
aliases:
|
||
|
- monerod
|
||
|
volumes:
|
||
|
- "{{ services.monerod.volume }}:/home/monero/.bitmonero:rw"
|
||
|
published_ports:
|
||
|
- 18080:18080/tcp
|