whitespaces

This commit is contained in:
Jérémy Lecour 2018-04-15 16:59:00 +02:00
parent 13abc44992
commit 2027420877
3 changed files with 13 additions and 12 deletions

View File

@ -38,17 +38,16 @@
- include: ssh_allowgroups.yml
when:
- ssh_allowgroups
- not ssh_allowusers
- ssh_allowgroups
- not ssh_allowusers
- include: ssh_allowusers.yml
vars:
user: "{{ item.value }}"
with_dict: "{{ evolinux_users }}"
when:
- ssh_allowusers
- not ssh_allowgroups
- ssh_allowusers
- not ssh_allowgroups
- name: disable root login
replace:

View File

@ -41,8 +41,7 @@
insertafter: "# END EVOLINUX PASSWORD RESTRICTIONS BY ADDRESS"
validate: '/usr/sbin/sshd -T -f %s'
notify: reload sshd
when:
- grep_matchuser_ssh.rc != 0
when: grep_matchuser_ssh.rc != 0
- name: "Append '{{ user.name }}' to Match User's sshd directive"
replace:
@ -51,5 +50,4 @@
replace: '\1,{{ user.name }}'
validate: '/usr/sbin/sshd -T -f %s'
notify: reload sshd
when:
- grep_matchuser_ssh.rc == 0
when: grep_matchuser_ssh.rc == 0

View File

@ -25,9 +25,11 @@
shell: /bin/bash
password: '{{ user.password_hash }}'
update_password: on_create
when: loginisbusy.rc != 0 and uidisbusy.rc != 0
when:
- loginisbusy.rc != 0
- uidisbusy.rc != 0
- name: "Add Unix account with random uid for '{{ user.name }}'"
- name: "Unix account for '{{ user.name }}' is present (with random uid)"
user:
state: present
name: '{{ user.name }}'
@ -35,7 +37,9 @@
shell: /bin/bash
password: '{{ user.password_hash }}'
update_password: on_create
when: loginisbusy.rc != 0 and uidisbusy.rc == 0
when:
- loginisbusy.rc != 0
- uidisbusy.rc == 0
# Unix groups