mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-05-12 20:37:53 +00:00
25 lines
615 B
YAML
25 lines
615 B
YAML
---
|
|
- hosts: hifive
|
|
become: yes
|
|
become_user: root
|
|
|
|
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: apache
|
|
group: apache
|
|
recurse: yes
|
|
|
|
- name: Change file chmod 640
|
|
command: find /var/www/html -type f -exec chmod 640 {} \;
|
|
|
|
- name: Change directory chmod 750
|
|
command: find /var/www/html -type d -exec chmod 750 {} \; |