summaryrefslogtreecommitdiffstats
path: root/roles/base/tasks
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2017-04-09 23:15:16 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2017-04-09 23:15:16 +0000
commit7a7054b34ce6738598124e193aaa4fd53b536c00 (patch)
treee34f3c7780d47d4ecf378d3f0d779deacd7dabcb /roles/base/tasks
parent3ec28fa016c55a663625c9b198444af2771014d4 (diff)
downloadansible-7a7054b34ce6738598124e193aaa4fd53b536c00.tar.gz
ansible-7a7054b34ce6738598124e193aaa4fd53b536c00.tar.xz
ansible-7a7054b34ce6738598124e193aaa4fd53b536c00.zip
Allow setting additional hostnames
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/base/tasks')
-rw-r--r--roles/base/tasks/sshcerts.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/base/tasks/sshcerts.yml b/roles/base/tasks/sshcerts.yml
index b30336f25..7bf68277c 100644
--- a/roles/base/tasks/sshcerts.yml
+++ b/roles/base/tasks/sshcerts.yml
@@ -82,8 +82,8 @@
- name: Set some extra signing facts
set_fact:
- sign_hostnames: "{{inventory_hostname}}"
- sign_validity: "-1h:+2w"
+ sign_hostnames: "[ '{{inventory_hostname}}' ] + ssh_hostnames | join(',')"
+ sign_validity: "-1h:+1y"
when: env == "staging"
tags:
- sshd_config