prosody/tasks/main.yaml
changeset 23 b4ad03deace1
child 44 aaf10cecfc1f
equal deleted inserted replaced
22:adeda2afeb75 23:b4ad03deace1
       
     1 ---
       
     2 
       
     3 - name: install prosody
       
     4   become: yes
       
     5   apt: name="prosody"
       
     6   notify: restart prosody
       
     7 
       
     8 - name: configure prosody
       
     9   become: yes
       
    10   template:
       
    11     src: "prosody.cfg.lua.j2"
       
    12     dest: "/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
       
    13   notify: restart prosody
       
    14 
       
    15 - name: install prosody site
       
    16   become: yes
       
    17   template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
       
    18   notify: restart prosody
       
    19 
       
    20 - name: enable prosody site
       
    21   become: yes
       
    22   file:
       
    23     src:  "/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
       
    24     dest: "/etc/prosody/conf.d/{{prosody_vhost}}.cfg.lua"
       
    25     state: "link"
       
    26   notify: restart prosody