whitespaces

This commit is contained in:
Jérémy Lecour 2017-12-04 13:50:21 +01:00 committed by Jérémy Lecour
parent 7a6b8451a9
commit d34ade4493
2 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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