Add user with legacy hash ($2a…) instead of current hash ($2b…) for OpenBSD versions older than 5.7
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jérémy Dubois 2020-10-22 11:52:54 +02:00
parent 4db9d006a2
commit 4012a014ce

View file

@ -5,6 +5,20 @@
name: "{{ user.name }}"
gid: "{{ user.uid }}"
- name: "User '{{ user.name }}' is present with legacy hash"
user:
state: present
name: '{{ user.name }}'
uid: '{{ user.uid }}'
password: "{{ user.password_hash_openbsd_legacy }}"
group: "{{ user.name }}"
groups: wheel
shell: /bin/ksh
append: true
when: ansible_distribution_version is version_compare("5.7",'<')
tags:
- admin
- name: "User '{{ user.name }}' is present"
user:
state: present
@ -15,6 +29,7 @@
groups: wheel
shell: /bin/ksh
append: true
when: ansible_distribution_version is version_compare("5.7",'>=')
tags:
- admin