source: MondoRescue/branches/3.3/ansible/roles/vsftpd/tasks/main.yml@ 3655

Last change on this file since 3655 was 3655, checked in by Bruno Cornec, 7 years ago

New MondoRescue site managed with ansible now

File size: 819 bytes
Line 
1---
2
3- name: Check that vsftpd is installed
4 urpmi: name=vsftpd state=installed no-recommends=yes
5 tags: vsftpd
6
7- name: Configure vsftpd ftp group
8 user: name=ftp state=present
9
10- name: Configure vsftpd ftpnobody group
11 user: name=ftpnobody state=present
12
13- name: Configure vsftpd ftp user
14 user: name=ftp home=/prj/ftp group=ftp shell=/bin/false state=present
15
16- name: Configure vsftpd ftpnobody user
17 user: name=ftpnobody home=/var/empty group=ftpnobody shell=/sbin/nologin state=present
18
19- name: Configure vsftpd
20 copy: src={{ item }} dest=/etc/vsftpd/{{ item | basename }} owner=root group=root mode=0640 backup=yes
21 with_fileglob: [ 'files/*' ]
22 notify:
23 - restart vsftpd
24 tags: vsftpd
25
26- name: Check that vsftpd is running and enabled
27 service: name=vsftpd state=running enabled=yes
28 tags: vsftpd
Note: See TracBrowser for help on using the repository browser.