add ansible key

This commit is contained in:
vincent 2022-11-11 20:51:05 +01:00
parent 58d55cb486
commit b33438b434

View File

@ -18,3 +18,7 @@ privatekeytodeploy:
- user: root - user: root
keyfile: /root/.ssh/id_gitea keyfile: /root/.ssh/id_gitea
privatekey: "{{lookup('hashi_vault', 'secret=secrets/data/ansible/privatekey:gitea')}}" privatekey: "{{lookup('hashi_vault', 'secret=secrets/data/ansible/privatekey:gitea')}}"
- user: ansible
keyfile: "/home/ansible/.ssh/id_gitea"
privatekey: "{{lookup('hashi_vault', 'secret=secrets/data/ansible/privatekey:gitea')}}"