mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 03:12:11 +00:00
22 lines
586 B
YAML
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 {} \; |