diff options
author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-08-15 16:24:37 +0000 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-08-15 16:24:37 +0000 |
commit | 11a36497c8aa9f828d93e856f4c0ff44d86d90eb (patch) | |
tree | 76bfae85d2afecaf9f0277d659dd0cc47477331f | |
parent | bc31ff475a5997553ae532226839b9944a1e056c (diff) | |
download | ansible-11a36497c8aa9f828d93e856f4c0ff44d86d90eb.tar.gz ansible-11a36497c8aa9f828d93e856f4c0ff44d86d90eb.tar.xz ansible-11a36497c8aa9f828d93e856f4c0ff44d86d90eb.zip |
Lets just call out to date...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rw-r--r-- | roles/base/tasks/sshcerts.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/base/tasks/sshcerts.yml b/roles/base/tasks/sshcerts.yml index 63b87ddf5..2707f7b0b 100644 --- a/roles/base/tasks/sshcerts.yml +++ b/roles/base/tasks/sshcerts.yml @@ -94,7 +94,7 @@ # Currently, we use the epoch as serial. That's unique enough for now - name: Sign the certificates - command: "ssh-keygen -s {{private}}/files/ssh/{{env}}_ca_host_key -I {{inventory_hostname}} -h -n {{ sign_hostnames|join(',') }} -V {{sign_validity}} -z {{ansible_date_time.epoch}} {{pubkeydir}}/{{inventory_hostname}}{{item}}.pub" + shell: "ssh-keygen -s {{private}}/files/ssh/{{env}}_ca_host_key -I {{inventory_hostname}} -h -n {{ sign_hostnames|join(',') }} -V {{sign_validity}} -z `date +%s` {{pubkeydir}}/{{inventory_hostname}}{{item}}.pub" delegate_to: "batcave01.phx2.fedoraproject.org" with_items: "{{certs_to_sign}}" tags: |