6a25236b25
With update of ansible-lint to version >=6.0.0 a lot of new linters were added, that enabled by default. In order to comply with linter rules we're applying changes to the role. With that we also update metdata to reflect current state. Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223 Change-Id: I9110294e492a501204c8e92448a2f2929781a509
18 lines
422 B
YAML
18 lines
422 B
YAML
---
|
|
- name: Create SSH keypair
|
|
run_once: true
|
|
delegate_to: localhost
|
|
openssh_keypair:
|
|
path: "{{ manila_keypair_path }}"
|
|
|
|
- name: Distribute SSH keypair
|
|
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 }}"
|