node/install/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 10 May 2020 17:28:15 -0500
changeset 3 74f60cd1440b
parent 2 0556e208fbee
permissions -rw-r--r--
Config tweaks
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: add node user
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  user: name="{{node_install_user}}"
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
- name: unarchive node
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
  become: yes
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
  unarchive:
1
d3ef4e0b4baa Expose lnd and btcd to listening public ip.
Luke Hoersten <luke@hoersten.org>
parents: 0
diff changeset
    10
    remote_src: yes
d3ef4e0b4baa Expose lnd and btcd to listening public ip.
Luke Hoersten <luke@hoersten.org>
parents: 0
diff changeset
    11
    src: "{{node_install_url}}"
0
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
    dest: "/tmp"
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
    creates: "/tmp/{{node_install_tar_name}}/"
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
- name: install node
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  become: yes
2
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    17
  copy:
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    18
    src: "/tmp/{{node_install_tar_name}}/"
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    19
    dest: "/usr/local/bin/"
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    20
    remote_src: yes
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    21
    owner: "root"
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    22
    group: "root"
0556e208fbee Made btcd and lnd arch changeable.
Luke Hoersten <luke@hoersten.org>
parents: 1
diff changeset
    23
    mode: "0755"