ansible-ci.yml

This commit is contained in:
s0dy 2018-11-18 16:47:35 +01:00
parent 1f2ea45255
commit 0e6f1e539e
2 changed files with 4 additions and 12 deletions

View File

@ -2,7 +2,6 @@
- hosts: hifive - hosts: hifive
become: yes become: yes
become_user: root become_user: root
#become_user: root
tasks: tasks:
- name: Copy all files to web server - name: Copy all files to web server
@ -19,8 +18,8 @@
group: apache group: apache
recurse: yes recurse: yes
- name: return motd to registered var - name: Change file chmod 640
command: find /var/www/html -type f -exec chmod 640 {} \; command: find /var/www/html -type f -exec chmod 640 {} \;
- name: return motd to registered var - name: Change directory chmod 750
command: find /var/www/html -type d -exec chmod 750 {} \; command: find /var/www/html -type d -exec chmod 750 {} \;

View File

@ -20,19 +20,12 @@
enabled: yes enabled: yes
masked: no masked: no
- name: Permissions /etc/httpd
file:
path: /etc/httpd
owner: apache
group: apache
recurse: yes
- name: Change file ownership, group and mode - name: Change file ownership, group and mode
file: file:
path: /var/www path: /var/www
owner: apache owner: root
group: apache group: apache
mode: "u=r,g=r,o=r" mode: 0750
recurse: yes recurse: yes
- name: Install python-passlib - name: Install python-passlib