From 5a560308d66250e02c83b76197e8e7e6a107d4d7 Mon Sep 17 00:00:00 2001 From: s0dy Date: Sun, 18 Nov 2018 15:23:51 +0100 Subject: [PATCH] gitlab-cy.yml --- .ansible-ci.yml | 16 +++++++--------- ops/ansible/httpd-centos.yml | 5 +++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.ansible-ci.yml b/.ansible-ci.yml index 878d3ac..c70786e 100644 --- a/.ansible-ci.yml +++ b/.ansible-ci.yml @@ -1,6 +1,4 @@ - hosts: hifive - #become: yes - #become_user: gitlab tasks: - name: Copy all files to web server @@ -10,10 +8,10 @@ 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: gitlab + # group: apache + # mode: "u=rwx,g=r,o=r" + # recurse: yes \ No newline at end of file diff --git a/ops/ansible/httpd-centos.yml b/ops/ansible/httpd-centos.yml index 96d1b59..effde63 100644 --- a/ops/ansible/httpd-centos.yml +++ b/ops/ansible/httpd-centos.yml @@ -27,11 +27,12 @@ group: apache recurse: yes - - name: Permissions /var/www + - name: Change file ownership, group and mode file: path: /var/www - owner: apache + owner: gitlab group: apache + mode: "u=rwx,g=rs,o=r" recurse: yes - name: Install python-passlib