whitespaces
This commit is contained in:
parent
7a6b8451a9
commit
d34ade4493
|
@ -6,7 +6,7 @@
|
||||||
changed_when: check_ftp_account.rc != 0
|
changed_when: check_ftp_account.rc != 0
|
||||||
register: check_ftp_account
|
register: check_ftp_account
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Generate FTP password
|
- name: Generate FTP password
|
||||||
command: apg -n1
|
command: apg -n1
|
||||||
|
@ -14,14 +14,14 @@
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when: check_ftp_account.rc != 0
|
when: check_ftp_account.rc != 0
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Print generated password
|
- name: Print generated password
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ ftp_password.stdout }}"
|
msg: "{{ ftp_password.stdout }}"
|
||||||
when: check_ftp_account.rc != 0
|
when: check_ftp_account.rc != 0
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Hash generated FTP password
|
- name: Hash generated FTP password
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when: check_ftp_account.rc != 0
|
when: check_ftp_account.rc != 0
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Get current FTP password
|
- name: Get current FTP password
|
||||||
shell: grep "^{{ proftpd_name }}:" /etc/proftpd/vpasswd | cut -d':' -f2
|
shell: grep "^{{ proftpd_name }}:" /etc/proftpd/vpasswd | cut -d':' -f2
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
when: check_ftp_account.rc == 0
|
when: check_ftp_account.rc == 0
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Get current FTP password
|
- name: Get current FTP password
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
when: check_ftp_account.rc == 0
|
when: check_ftp_account.rc == 0
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Create FTP account
|
- name: Create FTP account
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
line: "{{ proftpd_name }}:{{ proftpd_password }}:{{ proftpd_uid }}:{{ proftpd_gid }}::{{ proftpd_home }}:/bin/false"
|
line: "{{ proftpd_name }}:{{ proftpd_password }}:{{ proftpd_uid }}:{{ proftpd_gid }}::{{ proftpd_home }}:/bin/false"
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Allow FTP account
|
- name: Allow FTP account
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -68,4 +68,4 @@
|
||||||
insertbefore: "DenyAll"
|
insertbefore: "DenyAll"
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
name: proftpd-basic
|
name: proftpd-basic
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: ftpusers groupe exists
|
- name: ftpusers groupe exists
|
||||||
group:
|
group:
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
state: present
|
state: present
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: local jail is installed
|
- name: local jail is installed
|
||||||
template:
|
template:
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
force: no
|
force: no
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: mod_tls_memcache is disabled
|
- name: mod_tls_memcache is disabled
|
||||||
replace:
|
replace:
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
replace: '#LoadModule mod_tls_memcache.c'
|
replace: '#LoadModule mod_tls_memcache.c'
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
- name: Put empty vpasswd file if missing
|
- name: Put empty vpasswd file if missing
|
||||||
copy:
|
copy:
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
force: no
|
force: no
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
||||||
# Why 440? Because should be edited with ftpasswd.
|
# Why 440? Because should be edited with ftpasswd.
|
||||||
# So, readonly when opened with vim.
|
# So, readonly when opened with vim.
|
||||||
|
@ -54,4 +54,4 @@
|
||||||
group: root
|
group: root
|
||||||
notify: restart proftpd
|
notify: restart proftpd
|
||||||
tags:
|
tags:
|
||||||
- proftpd
|
- proftpd
|
||||||
|
|
Loading…
Reference in a new issue