2018-07-23 13:32:52 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- hosts: nova-compute
|
|
|
|
become: true
|
|
|
|
tasks:
|
2018-07-23 13:38:04 +02:00
|
|
|
- copy:
|
|
|
|
src: ceph.xml
|
|
|
|
dest: /root/ceph.xml
|
|
|
|
mode: 0644
|
2018-07-23 13:32:52 +02:00
|
|
|
- name: include secrets
|
|
|
|
include_vars:
|
|
|
|
file: secrets.yml
|
|
|
|
name: secrets
|
2018-07-23 13:38:04 +02:00
|
|
|
- command: virsh secret-define --file /root/ceph.xml
|
2018-07-23 13:32:52 +02:00
|
|
|
- command: >
|
|
|
|
virsh secret-set-value --secret d0db6ba7-a0c9-4da6-b0bc-aa7846325333
|
|
|
|
--base64 {{ secrets['ceph_client_volumes_key'] }}
|