run cm-ansible code and it would be redundant to run them again.
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
{'selinux': None},
{'clock': None}
])
- if 'run-cm-ansible' in config:
- init_tasks.extend([
- {'ansible.cephlab': None},
- ])
+ # dont run cm-ansible by default unless requested in config
+ # nodes are reimaged by FOG and the images provided
+ # by FOG have already gone through cm-ansible run
+ if config.get('run-cm-ansible', False):
+ init_tasks.extend([{'ansible.cephlab': None}])
if 'redhat' in config:
init_tasks.extend([