whitespaces
This commit is contained in:
parent
13abc44992
commit
2027420877
|
@ -38,17 +38,16 @@
|
||||||
|
|
||||||
- include: ssh_allowgroups.yml
|
- include: ssh_allowgroups.yml
|
||||||
when:
|
when:
|
||||||
- ssh_allowgroups
|
- ssh_allowgroups
|
||||||
- not ssh_allowusers
|
- not ssh_allowusers
|
||||||
|
|
||||||
- include: ssh_allowusers.yml
|
- include: ssh_allowusers.yml
|
||||||
vars:
|
vars:
|
||||||
user: "{{ item.value }}"
|
user: "{{ item.value }}"
|
||||||
with_dict: "{{ evolinux_users }}"
|
with_dict: "{{ evolinux_users }}"
|
||||||
when:
|
when:
|
||||||
- ssh_allowusers
|
- ssh_allowusers
|
||||||
- not ssh_allowgroups
|
- not ssh_allowgroups
|
||||||
|
|
||||||
|
|
||||||
- name: disable root login
|
- name: disable root login
|
||||||
replace:
|
replace:
|
||||||
|
|
|
@ -41,8 +41,7 @@
|
||||||
insertafter: "# END EVOLINUX PASSWORD RESTRICTIONS BY ADDRESS"
|
insertafter: "# END EVOLINUX PASSWORD RESTRICTIONS BY ADDRESS"
|
||||||
validate: '/usr/sbin/sshd -T -f %s'
|
validate: '/usr/sbin/sshd -T -f %s'
|
||||||
notify: reload sshd
|
notify: reload sshd
|
||||||
when:
|
when: grep_matchuser_ssh.rc != 0
|
||||||
- grep_matchuser_ssh.rc != 0
|
|
||||||
|
|
||||||
- name: "Append '{{ user.name }}' to Match User's sshd directive"
|
- name: "Append '{{ user.name }}' to Match User's sshd directive"
|
||||||
replace:
|
replace:
|
||||||
|
@ -51,5 +50,4 @@
|
||||||
replace: '\1,{{ user.name }}'
|
replace: '\1,{{ user.name }}'
|
||||||
validate: '/usr/sbin/sshd -T -f %s'
|
validate: '/usr/sbin/sshd -T -f %s'
|
||||||
notify: reload sshd
|
notify: reload sshd
|
||||||
when:
|
when: grep_matchuser_ssh.rc == 0
|
||||||
- grep_matchuser_ssh.rc == 0
|
|
||||||
|
|
|
@ -25,9 +25,11 @@
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: '{{ user.password_hash }}'
|
password: '{{ user.password_hash }}'
|
||||||
update_password: on_create
|
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:
|
user:
|
||||||
state: present
|
state: present
|
||||||
name: '{{ user.name }}'
|
name: '{{ user.name }}'
|
||||||
|
@ -35,7 +37,9 @@
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: '{{ user.password_hash }}'
|
password: '{{ user.password_hash }}'
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
when: loginisbusy.rc != 0 and uidisbusy.rc == 0
|
when:
|
||||||
|
- loginisbusy.rc != 0
|
||||||
|
- uidisbusy.rc == 0
|
||||||
|
|
||||||
# Unix groups
|
# Unix groups
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue