Use a static dir
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
7ce0b12a42
commit
3ec28fa016
1 changed files with 12 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue