diff --git a/.ansible-ci.yml b/.ansible-ci.yml index c70786e..f1a32bd 100644 --- a/.ansible-ci.yml +++ b/.ansible-ci.yml @@ -8,10 +8,15 @@ rsync_opts: - --exclude=.htaccess - #- name: Change file ownership, group and mode - # file: - # path: /var/www/html - # owner: gitlab - # group: apache - # mode: "u=rwx,g=r,o=r" - # recurse: yes \ No newline at end of file + - 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 {} \; \ No newline at end of file diff --git a/ops/ansible/httpd-centos.yml b/ops/ansible/httpd-centos.yml index effde63..2037e90 100644 --- a/ops/ansible/httpd-centos.yml +++ b/ops/ansible/httpd-centos.yml @@ -30,9 +30,9 @@ - name: Change file ownership, group and mode file: path: /var/www - owner: gitlab + owner: apache group: apache - mode: "u=rwx,g=rs,o=r" + mode: "u=r,g=r,o=r" recurse: yes - name: Install python-passlib