Skip to content
Snippets Groups Projects
Commit fbc7c00e authored by nimrod's avatar nimrod
Browse files

- Workaround for OpenBSD where the default password (invalid) for users

without a password is too short and therefore any usermod actions fail
(see http://marc.info/?l=openbsd-tech&m=146661674018597&w=2).
parent 7ba41133
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,15 @@
- hosts: all
pre_tasks:
- name: Set invalid, long enough passwords (workaround for OpenBSD restriction)
when: ansible_os_family == 'OpenBSD'
with_items: '{{ deploy_key_users }}'
user:
name: '{{ item }}'
password: '*************'
state: present
update_password: always
- name: Create SSH keypair
local_action: command ssh-keygen -t rsa -N '' -f files/id_rsa
run_once: True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment