writefreely/server/tasks/main.yaml
changeset 170 a20a6d03747f
parent 163 40b78af86337
child 171 534b247bed1c
equal deleted inserted replaced
169:f4f9b52ede46 170:a20a6d03747f
    64   register: keys_file
    64   register: keys_file
    65 
    65 
    66 - name: generate keys
    66 - name: generate keys
    67   become: yes
    67   become: yes
    68   become_user: "{{writefreely_user}}"
    68   become_user: "{{writefreely_user}}"
    69   command: "writefreely keys gen"
    69   command: "writefreely keys generate"
    70   args:
    70   args:
    71     chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"
    71     chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"
    72   when: not keys_file.stat.exists
    72   # when: not keys_file.stat.exists
    73 
    73 
    74 - name: check if db exists
    74 - name: check if db exists
    75   stat:
    75   stat:
    76     path: "{{writefreely_dir}}/{{writefreely_instance}}/writefreely.db"
    76     path: "{{writefreely_dir}}/{{writefreely_instance}}/writefreely.db"
    77   register: db_file
    77   register: db_file