Files
openstack-ansible-os_manila/tasks/manila_keys.yml
Dmitriy Rabotyagov 0a70ad7623 Apply linters autofix to the role
We combine this patch with switch Manila jobs to Noble
in order to resolve the conflict and fix CI for the role.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/948255
Change-Id: Id63a340123f31dc1f214126fe9f702673fb3b3f8
2025-04-30 09:37:51 +02:00

18 lines
455 B
YAML

---
- name: Create SSH keypair
run_once: true
delegate_to: localhost
community.crypto.openssh_keypair:
path: "{{ manila_keypair_path }}"
- name: Distribute SSH keypair
ansible.builtin.copy:
src: "{{ item }}"
dest: "/etc/manila/{{ item | basename }}"
owner: "{{ manila_system_user_name }}"
group: "{{ manila_system_group_name }}"
mode: "0600"
loop:
- "{{ manila_keypair_path }}.pub"
- "{{ manila_keypair_path }}"