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