Last change
on this file since 3801 was 3795, checked in by Bruno Cornec, 6 months ago |
Untag v3.3.0 never really published in the past - will start from here
|
File size:
819 bytes
|
Rev | Line | |
---|
[3655] | 1 | ---
|
---|
| 2 |
|
---|
| 3 | - name: Check that vsftpd is installed
|
---|
[3795] | 4 | urpmi: name=vsftpd state=installed no_recommends=yes
|
---|
[3655] | 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
|
---|
[3674] | 27 | service: name=vsftpd state=started enabled=yes
|
---|
[3655] | 28 | tags: vsftpd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.