fix this lookup so it works on primary again

This commit is contained in:
Kevin Fenzi 2018-03-05 01:54:17 +00:00
parent e6efe566ec
commit dad12eb4ca

View file

@ -101,7 +101,7 @@
tasks:
- name: Put public sshfs key in place
authorized_key: user="root"
key="{{ lookup('file', '{{ private }}/files/releng/sshkeys/primary-s390x-sshfs' + '-staging.pub' if env == 'staging' else '.pub') }}"
key="{{ lookup('file', '{{ private }}/files/releng/sshkeys/primary-s390x-sshfs' + '-staging.pub' if env == 'staging' else '{ private }}/files/releng/sshkeys/primary-s390x-sshfs.pub') }}"
state=present
key_options='command="internal-sftp",from="{{ '10.16.0.25' if env == 'staging' else '10.16.0.11' }}",restrict'
tags: