Add ssh key to the ssh agent
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
@@ -36,7 +36,8 @@ steps:
|
|||||||
- name: ansible apply
|
- name: ansible apply
|
||||||
image: cytopia/ansible:latest-infra
|
image: cytopia/ansible:latest-infra
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519
|
- ssh-add /root/.ssh/id_ed25519
|
||||||
|
- ansible-playbook -i inventory/hosts.yml site.yml
|
||||||
volumes:
|
volumes:
|
||||||
- name: ssh_key
|
- name: ssh_key
|
||||||
path: /root/.ssh
|
path: /root/.ssh
|
||||||
|
Reference in New Issue
Block a user