Blog_IMIE/.ansible-ci.yml
2018-11-18 16:15:03 +01:00

22 lines
586 B
YAML

- 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 {} \;