mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 03:12:11 +00:00
ansible-ci.yml
This commit is contained in:
parent
1f2ea45255
commit
0e6f1e539e
@ -2,7 +2,6 @@
|
||||
- hosts: hifive
|
||||
become: yes
|
||||
become_user: root
|
||||
#become_user: root
|
||||
|
||||
tasks:
|
||||
- name: Copy all files to web server
|
||||
@ -19,8 +18,8 @@
|
||||
group: apache
|
||||
recurse: yes
|
||||
|
||||
- name: return motd to registered var
|
||||
- name: Change file 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 {} \;
|
@ -20,19 +20,12 @@
|
||||
enabled: yes
|
||||
masked: no
|
||||
|
||||
- name: Permissions /etc/httpd
|
||||
file:
|
||||
path: /etc/httpd
|
||||
owner: apache
|
||||
group: apache
|
||||
recurse: yes
|
||||
|
||||
- name: Change file ownership, group and mode
|
||||
file:
|
||||
path: /var/www
|
||||
owner: apache
|
||||
owner: root
|
||||
group: apache
|
||||
mode: "u=r,g=r,o=r"
|
||||
mode: 0750
|
||||
recurse: yes
|
||||
|
||||
- name: Install python-passlib
|
||||
|
Loading…
x
Reference in New Issue
Block a user