- hosts: hifive tasks: - name: Copy all files to web server synchronize: src: /builds/aviortheking/blog_imie/project/ dest: /var/www/html rsync_opts: - --exclude=.htaccess - name: Change file ownership, group and mode file: path: /var/www/html owner: root group: apache recurse: yes - name: return motd to registered var command: find /var/www/html -type f -exec chmod 640 {} \; - name: return motd to registered var command: find /var/www/html -type d -exec chmod 750 {} \;