copy purge-cluster to top level dir for the playbook to work
@@ -185,11 +185,20 @@ class CephAnsible(Task):
'ANSIBLE_STDOUT_CALLBACK=debug',
'ansible-playbook', '-vv',
'-e', 'ireallymeanit=yes',
- '-i', 'inven.yml', 'infrastructure-playbooks/purge-cluster.yml'
+ '-i', 'inven.yml', 'purge-cluster.yml'
]
log.debug("Running %s", args)
str_args = ' '.join(args)
installer_node = self.ceph_installer
+ # copy purge-cluster playbook from infra dir to top level dir
+ # as required by ceph-ansible
+ installer_node.run(
+ args=[
+ 'cp',
+ run.Raw('~/ceph-ansible/infrastructure-playbooks/purge-cluster.yml'),
+ run.Raw('~/ceph-ansible/'),
+ ]
+ )
if self.config.get('rhbuild'):
installer_node.run(
args=[
