prosody/tasks/main.yaml
changeset 138 591b6609fc64
parent 45 2d7ba960b157
child 237 c6c11084c802
equal deleted inserted replaced
137:645c1e109921 138:591b6609fc64
    18 - name: install prosody site
    18 - name: install prosody site
    19   become: yes
    19   become: yes
    20   template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
    20   template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
    21   notify: restart prosody
    21   notify: restart prosody
    22 
    22 
    23 - name: copy ssl keys
    23 - name: install letsencrypt ssl deploy hook
    24   become: yes
    24   become: yes
    25   copy:
    25   copy:
    26     src: "{{item}}"
    26     src: "prosody.sh"
    27     dest: "{{prosody_ssl_dir}}/"
    27     dest: "/etc/letsencrypt/renewal-hooks/deploy/prosody.sh"
    28     remote_src: yes
    28     mode: "0755"
    29     mode: "0640"
    29 
    30     owner: "root"
    30 - name: run letsencrypt ssl deploy hook
    31     group: "prosody"
    31   become: yes
       
    32   command: "/etc/letsencrypt/renewal-hooks/deploy/prosody.sh"
    32   notify: restart prosody
    33   notify: restart prosody
    33   loop:
       
    34     - "{{prosody_ssl_privkey_src}}"
       
    35     - "{{prosody_ssl_cert_src}}"
       
    36 
    34 
    37 - name: install db schema file
    35 - name: install db schema file
    38   become: yes
    36   become: yes
    39   template:
    37   template:
    40     src: "setup_db.psql.j2"
    38     src: "setup_db.psql.j2"