bitcoind/tasks/main.yaml
changeset 10 26ed67281db6
parent 9 ddf84e986362
child 21 bf53e2eb4d30
equal deleted inserted replaced
9:ddf84e986362 10:26ed67281db6
     2 
     2 
     3 - name: add bitcoind user
     3 - name: add bitcoind user
     4   become: yes
     4   become: yes
     5   user: name="{{bitcoind_user}}"
     5   user: name="{{bitcoind_user}}"
     6 
     6 
     7 - name: unarchive bitcoind
     7 - name: download bitcoind
     8   become: yes
     8   become: yes
     9   unarchive:
     9   unarchive:
    10     remote_src: yes
    10     remote_src: yes
    11     src: "{{bitcoind_url}}"
    11     src: "{{bitcoind_url}}"
    12     dest: "/tmp"
    12     dest: "/tmp"
    22     group: "root"
    22     group: "root"
    23     mode: "0755"
    23     mode: "0755"
    24   loop:
    24   loop:
    25     - "bitcoind"
    25     - "bitcoind"
    26     - "bitcoin-cli"
    26     - "bitcoin-cli"
       
    27   notify: restart bitcoind
    27 
    28 
    28 - name: create bitcoind data dir
    29 - name: create bitcoind data dir
    29   become: yes
    30   become: yes
    30   file:
    31   file:
    31     path: "{{item.path}}"
    32     path: "{{item.path}}"