2019-03-19 12:08:13 +01:00
|
|
|
---
|
|
|
|
- name: Create container folders
|
|
|
|
file:
|
2019-03-19 17:27:49 +01:00
|
|
|
path: '{{ faucet_geth_vol }}/data'
|
2019-03-19 12:08:13 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0750
|
|
|
|
owner: dockremap
|
|
|
|
group: docker
|
|
|
|
|
2019-03-19 17:27:49 +01:00
|
|
|
- name: 'Create geth container: {{ faucet_geth_name }}'
|
2019-03-19 12:08:13 +01:00
|
|
|
docker_container:
|
2019-03-19 17:27:49 +01:00
|
|
|
name: '{{ faucet_geth_name }}'
|
|
|
|
image: '{{ faucet_geth_image }}'
|
2019-03-19 12:08:13 +01:00
|
|
|
user: root
|
|
|
|
pull: true
|
|
|
|
restart_policy: always
|
|
|
|
state: '{{ cont_state }}'
|
|
|
|
recreate: '{{ cont_recreate }}'
|
|
|
|
restart: '{{ cont_restart }}'
|
|
|
|
command: |
|
|
|
|
--datadir=/data
|
|
|
|
--networkid={{ faucet_network_id | mandatory }}
|
|
|
|
--syncmode=light
|
|
|
|
--rpc
|
|
|
|
--rpcapi=eth
|
|
|
|
--rpcaddr=0.0.0.0
|
|
|
|
--rpcport={{ faucet_geth_rpc_port }}
|
|
|
|
--v5disc
|
2019-03-19 17:27:49 +01:00
|
|
|
exposed_ports:
|
|
|
|
- '{{ faucet_geth_rpc_port }}'
|
2019-03-19 12:08:13 +01:00
|
|
|
volumes:
|
2019-03-19 17:27:49 +01:00
|
|
|
- '{{ faucet_geth_vol }}/data:/date'
|