bitcoind/tasks/main.yaml
changeset 9 ddf84e986362
parent 6 e0672e50e2c5
child 10 26ed67281db6
equal deleted inserted replaced
8:fd72f6774874 9:ddf84e986362
    26     - "bitcoin-cli"
    26     - "bitcoin-cli"
    27 
    27 
    28 - name: create bitcoind data dir
    28 - name: create bitcoind data dir
    29   become: yes
    29   become: yes
    30   file:
    30   file:
    31     path: "{{item}}"
    31     path: "{{item.path}}"
    32     state: "directory"
    32     state: "directory"
    33     owner: "{{bitcoind_user}}"
    33     owner: "{{bitcoind_user}}"
    34     group: "{{bitcoind_user}}"
    34     group: "{{bitcoind_user}}"
    35     mode: "0770"
    35     mode: "{{item.mode}}"
    36   loop:
    36   loop:
    37     - "{{bitcoind_data_dir}}"
    37     - { path: "{{bitcoind_data_dir}}", mode: "0750" }
    38     - "{{bitcoind_log_dir}}"
    38     - { path: "{{bitcoind_log_dir}}", mode: "0750" }
    39     - "{{bitcoind_conf_dir}}"
    39     - { path: "{{bitcoind_conf_dir}}", mode: "0755" }
    40 
    40 
    41 - name: configure bitcoind
    41 - name: configure bitcoind
    42   become: yes
    42   become: yes
    43   template:
    43   template:
    44     src: "bitcoin.conf.j2"
    44     src: "bitcoin.conf.j2"