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-29 11:34:40 -08:00
|
|
|
- "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/deployment-azure/{{ TEMPLATES_BRANCH }}/nodes/bootnode/node.toml"
|
2017-11-12 09:06:57 -08:00
|
|
|
|
|
|
|
- name: Change nat in node.toml
|
2017-12-14 00:39:42 -08:00
|
|
|
lineinfile:
|
2017-11-12 09:06:57 -08:00
|
|
|
path: "{{ home }}/node.toml"
|
|
|
|
insertafter: '^\[network\]'
|
|
|
|
line: nat="extip:{{ ansible_host }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Change reserved_peers in node.toml
|
2017-12-14 00:39:42 -08:00
|
|
|
lineinfile:
|
2017-11-12 09:06:57 -08:00
|
|
|
path: "{{ home }}/node.toml"
|
|
|
|
insertafter: '^\[network\]'
|
2017-11-20 14:36:23 -08:00
|
|
|
line: reserved_peers="{{ home }}/bootnodes.txt"
|
2017-11-12 09:06:57 -08:00
|
|
|
state: present
|
|
|
|
|
2017-11-21 05:33:52 -08:00
|
|
|
- name: Add log file in node.toml
|
2017-12-14 00:39:42 -08:00
|
|
|
blockinfile:
|
2017-11-21 05:33:52 -08:00
|
|
|
path: "{{ home }}/node.toml"
|
|
|
|
block: |
|
|
|
|
[misc]
|
|
|
|
log_file = "{{ home }}/logs/parity.log"
|
|
|
|
|
2017-11-29 13:23:43 -08:00
|
|
|
#- file: path={{ home }} owner={{ username }} group={{ username }} recurse=yes
|