deployment-playbooks/roles/bootnode/tasks/main.yml

30 lines
933 B
YAML
Raw Normal View History

2017-11-12 09:06:57 -08:00
---
2017-12-14 00:39:42 -08:00
- name: Create directory parity_data/keys/NetworkName
2017-11-14 12:48:28 -08:00
file:
2017-12-14 00:39:42 -08:00
path: "{{ home }}/parity_data/keys/{{ GENESIS_NETWORK_NAME }}"
2017-11-14 12:48:28 -08:00
state: directory
mode: 0700
owner: "{{ username }}"
group: "{{ username }}"
- name: Create logs directories
file:
path: "/{{ home }}/logs/old"
state: directory
mode: 0755
owner: "{{ username }}"
group: "{{ username }}"
2017-11-12 09:06:57 -08:00
- name: Download spec.json
get_url: url={{ item }} dest={{ home }}/ mode=0644
with_items:
2017-12-14 00:39:42 -08:00
- "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/poa-chain-spec/{{ GENESIS_BRANCH }}/spec.json"
2017-12-18 04:21:31 -08:00
- "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/poa-chain-spec/{{ GENESIS_BRANCH }}/bootnodes.txt"
2017-11-12 09:06:57 -08:00
- name: Create node.toml
template: src={{ item }}.j2 dest={{ home }}/node.toml owner=root group=root mode=0644
with_items:
- node.toml
2017-11-21 05:33:52 -08:00
2017-11-29 13:23:43 -08:00
#- file: path={{ home }} owner={{ username }} group={{ username }} recurse=yes