mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 13:07:06 +01:00
build
This commit is contained in:
1 parent
6450791767
commit
c60807239a
1 file changed
+11
@@ -141,6 +141,17 @@
|
||||
{{ '{{' }} end {{ '}}' }}
|
||||
EOH
|
||||
}
|
||||
template {
|
||||
destination = "/home/ansible/.ssh/id_ed25519-cert.pub"
|
||||
perms = "0644"
|
||||
user = "ansible"
|
||||
group = "ansible"
|
||||
contents = <<EOH
|
||||
{{ with secret "ssh/sign/admin" (printf "public_key=%s" (trimSpace (file "/home/ansible/.ssh/id_ed25519.pub"))) "valid_principals=ansible" }}
|
||||
{{ .Data.signed_key }}
|
||||
{{ end }}
|
||||
EOH
|
||||
}
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
Reference in new issue
Block a user