writefreely/tasks/main.yaml
changeset 27 8fddefdd948b
parent 26 b0e4ad2f4291
child 51 19fa7aa47bf1
equal deleted inserted replaced
26:b0e4ad2f4291 27:8fddefdd948b
    74   become: yes
    74   become: yes
    75   become_user: "{{writefreely_user}}"
    75   become_user: "{{writefreely_user}}"
    76   command: "writefreely keys gen"
    76   command: "writefreely keys gen"
    77   args:
    77   args:
    78     chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"
    78     chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"
    79   when: not key_file.stat.exists
    79   when: not keys_file.stat.exists
    80 
    80 
    81 - name: check if db exists
    81 - name: check if db exists
    82   stat:
    82   stat:
    83     path: "{{writefreely_dir}}/{{writefreely_instance}}/writefreely.db"
    83     path: "{{writefreely_dir}}/{{writefreely_instance}}/writefreely.db"
    84   register: db_file
    84   register: db_file