- name: Create the directory for this year file: path: /var/www/live.emacsconf.org/{{ item }} owner: "{{ emacsconf_user }}" group: "{{ emacsconf_user }}" state: directory loop: - "{{ emacsconf_year }}" - "{{ emacsconf_year }}/watch" - name: Set up nginx.conf template: src: live.emacsconf.org.conf dest: /etc/nginx/sites-available/live.emacsconf.org - name: Reload nginx service: name: nginx state: reloaded