--- - name: Create directory parity_data/keys/NetworkName file: path: "{{ home }}/parity_data/keys/{{ GENESIS_NETWORK_NAME }}" 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 }}" - name: Download spec.json get_url: url={{ item }} dest={{ home }}/ mode=0644 with_items: - "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/poa-chain-spec/{{ GENESIS_BRANCH }}/spec.json" - "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/poa-chain-spec/{{ GENESIS_BRANCH }}/bootnodes.txt" - "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/deployment-azure/{{ TEMPLATES_BRANCH }}/nodes/bootnode/node.toml" - name: Change nat in node.toml lineinfile: path: "{{ home }}/node.toml" insertafter: '^\[network\]' line: nat="extip:{{ ansible_host }}" state: present - name: Change reserved_peers in node.toml lineinfile: path: "{{ home }}/node.toml" insertafter: '^\[network\]' line: reserved_peers="{{ home }}/bootnodes.txt" state: present - name: Add log file in node.toml blockinfile: path: "{{ home }}/node.toml" block: | [misc] log_file = "{{ home }}/logs/parity.log" #- file: path={{ home }} owner={{ username }} group={{ username }} recurse=yes