- name: disable all sites command: "a2dissite *" args: chdir: "/etc/apache2/sites-enabled" - name: push temporary config file template: src: renewal dest: /etc/apache2/sites-available/renewal.conf - name: push temporary config ssl file template: src: renewal-ssl dest: /etc/apache2/sites-available/renewal-ssl.conf - name: enable renewal site command: "a2ensite renewal renewal-ssl" notify: - reload apache - name: test command: "echo test"