lnd/tasks/main.yaml
changeset 9 ddf84e986362
parent 6 e0672e50e2c5
child 10 26ed67281db6
equal deleted inserted replaced
8:fd72f6774874 9:ddf84e986362
    36         - "lndconnect"
    36         - "lndconnect"
    37 
    37 
    38 - name: create lnd data dir
    38 - name: create lnd data dir
    39   become: yes
    39   become: yes
    40   file:
    40   file:
    41     path: "{{item}}"
    41     path: "{{item.path}}"
    42     state: "directory"
    42     state: "directory"
    43     owner: "{{lnd_user}}"
    43     owner: "{{lnd_user}}"
    44     group: "{{lnd_user}}"
    44     group: "{{lnd_user}}"
    45     mode: "0770"
    45     mode: "{{item.mode}}"
    46   loop:
    46   loop:
    47     - "{{lnd_data_dir}}"
    47     - { path: "{{lnd_data_dir}}", mode: "0750" }
    48     - "{{lnd_log_dir}}"
    48     - { path: "{{lnd_log_dir}}", mode: "0750" }
    49     - "{{lnd_conf_dir}}"
    49     - { path: "{{lnd_conf_dir}}", mode: "0755" }
    50 
    50 
    51 - name: configure lnd
    51 - name: configure lnd
    52   become: yes
    52   become: yes
    53   template:
    53   template:
    54     src: "lnd.conf.j2"
    54     src: "lnd.conf.j2"