# This will take care of pushing out --- - hosts: web remote_user: web tasks: - name: Clean out remote remote site content file: path: /var/www/freechat state: absent - name: Push /public directory to /var/www/freechat copy: src: "{{FC_LOCAL_DOCS}}/public" dest: /var/www/ - name: Pull up public directory command: mv /var/www/public /var/www/freechat