ovh_instance_playbooks/deploy_ssh_private_key.yml

17 lines
430 B
YAML
Raw Normal View History

- name: deploy SSH private key on Ansible controller
hosts: localhost
vars_files:
- vars/main.yml
gather_facts: false
tasks:
- name: Retrieve secrets
ansible.builtin.include_tasks:
file: "tasks/retrieve_secret_vars.yml"
- name: Deploy SSH private key
copy:
2024-10-22 21:37:42 +00:00
src: "{{ ansible_user_dir }}/{{ ANSIBLE_WORKDIR }}/id_rsa"
dest: "{{ ansible_user_dir }}/.ssh/"
mode: 0600