Use a static dir

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-04-09 22:50:25 +00:00
parent 7ce0b12a42
commit 3ec28fa016

View file

@ -44,21 +44,24 @@
# TODO: Get expired certificates, and add them to certs_to_sign # TODO: Get expired certificates, and add them to certs_to_sign
- name: Create directory for storing pubkeys - set_fact:
command: "mktemp -d --suffix=sshkeysign" pubkeydir: "/tmp/sshkeysign"
delegate_to: "batcave01.phx2.fedoraproject.org" when: env == "staging"
run_once: true
register: pubkeydirout
when: env == "staging" and certs_to_sign != []
tags: tags:
- sshd_config - sshd_config
- config - config
- sshd - sshd
- base - base
- set_fact: - name: Create directory for storing pubkeys
pubkeydir: "{{pubkeydirout.stdout}}" file: path="{{pubkeydir}}"
when: env == "staging" and certs_to_sign != [] owner=root
group=root
mode=0600
state=directory
delegate_to: "batcave01.phx2.fedoraproject.org"
run_once: true
when: env == "staging"
tags: tags:
- sshd_config - sshd_config
- config - config