tripleo-common/roles/tripleo-persist/test-playbook.yml
Jiri Stransky 6bcdb4fddf Ansible role for data presistence and restoration
This can be used for temporary persisting data on undercloud if we
want to reprovision the overcloud nodes.

Change-Id: If059c477cb2d344fa4c00ce4ea89269c4ef747bd
Implements: blueprint upgrades-with-os
2019-01-17 14:05:55 +01:00

21 lines
653 B
YAML

- hosts: overcloud-controller-0
become: true
tasks:
- name: test tripleo-persist persistence
include_role:
name: tripleo-persist
tasks_from: persist.yml
vars:
tripleo_persist_dir: /testdir/testsubdir
tripleo_persist_storage_root_dir: /home/stack/tripleo-persist
when: persist|default(false)|bool
- name: test tripleo-persist restoration
include_role:
name: tripleo-persist
tasks_from: restore.yml
vars:
tripleo_persist_dir: /testdir/testsubdir
tripleo_persist_storage_root_dir: /home/stack/tripleo-persist
when: restore|default(false)|bool