prosody/tasks/main.yaml
changeset 44 aaf10cecfc1f
parent 23 b4ad03deace1
child 45 2d7ba960b157
equal deleted inserted replaced
43:b86f3fc9fb6f 44:aaf10cecfc1f
    15 - name: install prosody site
    15 - name: install prosody site
    16   become: yes
    16   become: yes
    17   template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
    17   template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
    18   notify: restart prosody
    18   notify: restart prosody
    19 
    19 
       
    20 - name: copy ssl keys
       
    21   become: yes
       
    22   copy:
       
    23     src: "{{item}}"
       
    24     dest: "{{prosody_ssl_dir}}/"
       
    25     remote_src: yes
       
    26     mode: "0640"
       
    27     owner: "root"
       
    28     group: "prosody"
       
    29   notify: restart prosody
       
    30   loop:
       
    31     - "{{prosody_ssl_privkey_src}}"
       
    32     - "{{prosody_ssl_cert_src}}"
       
    33 
    20 - name: enable prosody site
    34 - name: enable prosody site
    21   become: yes
    35   become: yes
    22   file:
    36   file:
    23     src:  "/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
    37     src:  "/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
    24     dest: "/etc/prosody/conf.d/{{prosody_vhost}}.cfg.lua"
    38     dest: "/etc/prosody/conf.d/{{prosody_vhost}}.cfg.lua"