Revert "basessh: try and filter out the empty list element"
This reverts commit 91db9425bc
.
This commit is contained in:
parent
91db9425bc
commit
7e40030b01
1 changed files with 3 additions and 3 deletions
|
@ -176,7 +176,7 @@
|
||||||
fetch: src="{{item}}.pub"
|
fetch: src="{{item}}.pub"
|
||||||
dest="{{pubkeydir}}"
|
dest="{{pubkeydir}}"
|
||||||
fail_on_missing=false
|
fail_on_missing=false
|
||||||
with_items: "{{certs_to_sign|select()|list}}"
|
with_items: "{{certs_to_sign}}"
|
||||||
tags:
|
tags:
|
||||||
- basessh
|
- basessh
|
||||||
- sshd_cert
|
- sshd_cert
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
- name: Sign the certificates
|
- name: Sign the certificates
|
||||||
shell: "ssh-keygen -s {{private}}/files/ssh/{{env}}_ca_host_key -t rsa-sha2-256 -I {{inventory_hostname}} -h -n {{ sign_hostnames|join(',') }} -V {{sign_validity}} -z `date +%s` {{pubkeydir}}/{{inventory_hostname}}{{item}}.pub"
|
shell: "ssh-keygen -s {{private}}/files/ssh/{{env}}_ca_host_key -t rsa-sha2-256 -I {{inventory_hostname}} -h -n {{ sign_hostnames|join(',') }} -V {{sign_validity}} -z `date +%s` {{pubkeydir}}/{{inventory_hostname}}{{item}}.pub"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
with_items: "{{certs_to_sign|select()|list}}"
|
with_items: "{{certs_to_sign}}"
|
||||||
check_mode: no
|
check_mode: no
|
||||||
tags:
|
tags:
|
||||||
- basessh
|
- basessh
|
||||||
|
@ -214,7 +214,7 @@
|
||||||
- name: Copy the certificates
|
- name: Copy the certificates
|
||||||
copy: src="{{pubkeydir}}/{{inventory_hostname}}{{item}}-cert.pub"
|
copy: src="{{pubkeydir}}/{{inventory_hostname}}{{item}}-cert.pub"
|
||||||
dest="{{item}}-cert.pub"
|
dest="{{item}}-cert.pub"
|
||||||
with_items: "{{certs_to_sign|select()|list}}"
|
with_items: "{{certs_to_sign}}"
|
||||||
register: certcopy
|
register: certcopy
|
||||||
notify:
|
notify:
|
||||||
- restart sshd
|
- restart sshd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue