--- - name: Install ufw apt: name=ufw state=present tags: firewall - name: Limit ssh ufw: rule=limit port=ssh proto=tcp tags: firewall - name: Enable ufw ufw: state=enabled tags: firewall - name: Check if wownerod is installed stat: path="{{ wownerod_path }}" register: stat_wownerod_path - name: Check wownerod version command: "{{ wownerod_path }} --version" register: wownerod_version_cmd when: stat_wownerod_path.stat.exists - name: Parse wownerod version set_fact: installed_wownerod_version: "{{ wownerod_version_cmd.stdout | regex_search('\\d+\\.\\d+\\.\\d+\\.\\d') }}" when: stat_wownerod_path.stat.exists - name: Install wownerod import_tasks: install.yaml when: not stat_wownerod_path.stat.exists or not installed_wownerod_version == wownero_version - name: Create wownero user user: name: wownero create_home: no home: /var/lib/wownero shell: /bin/false system: yes - name: Install systemd unit file template: src: wownerod.service.j2 dest: /etc/systemd/system/wownerod.service owner: root group: root mode: '0644' notify: - restart wownerod - name: Install wownerod config file template: src: wownerod.conf.j2 dest: /etc/wownerod.conf owner: root group: root mode: '0644' notify: - restart wownerod - name: Allow wownerod p2p port ufw: rule: allow port: "{{ wownerod_p2p_port }}" proto: tcp tags: firewall - name: Allow wownerod rpc port ufw: rule: allow port: "{{ wownerod_rpc_port }}" proto: tcp tags: firewall - name: Enable wownerod service systemd: name: wownerod.service enabled: true - name: Install tor apt: name=tor state=present - name: Install tor config file template: src: torrc.j2 dest: /etc/tor/torrc owner: root group: root mode: '0644' notify: - restart tor - name: Install i2pd apt: name=i2pd state=present - name: Install i2pd tunnels.conf template: src: tunnels.conf.j2 dest: /etc/i2pd/tunnels.conf owner: root group: root mode: '0644' notify: - restart i2pd - name: Flush handlers meta: flush_handlers - name: Pause 1 minute for b32.i2p creation pause: minutes: 1 - name: get onion hostname slurp: src: /var/lib/tor/wownero/hostname register: onionhost - name: get i2p hostname find: path: /var/lib/i2pd/destinations register: i2phost - name: show b32 i2p and onion debug: msg: - "ADD URLs TO https://MONERO.FAIL/?crypto=wownero" - "YOUR I2P ADDRESS (remove .dat, add .b32.i2p):" - "{{ item.path | basename }}" - "YOUR TOR ADDRESS:" - "{{ onionhost['content'] | b64decode }}" with_items: "{{ i2phost.files }}"