Browse Source

Merge pull request #801 from smunilla/default_playbook_arg

atomic-openshift-installer: Add default openshift-ansible-playbook
Brenton Leanhardt 9 years ago
parent
commit
3d3f2875bb
1 changed files with 8 additions and 8 deletions
  1. 8 8
      utils/src/ooinstall/cli_installer.py

+ 8 - 8
utils/src/ooinstall/cli_installer.py

@@ -379,14 +379,14 @@ def get_hosts_to_run_on(oo_cfg, callback_facts, unattended, force):
         readable=True),
     default=None)
 @click.option('--ansible-playbook-directory',
-    '-a',
-    type=click.Path(exists=True,
-        file_okay=False,
-        dir_okay=True,
-        writable=False,
-        readable=True),
-    # callback=validate_ansible_dir,
-    envvar='OO_ANSIBLE_PLAYBOOK_DIRECTORY')
+              '-a',
+              type=click.Path(exists=True,
+                              file_okay=False,
+                              dir_okay=True,
+                              readable=True),
+              # callback=validate_ansible_dir,
+              default='/usr/share/openshift-ansible/',
+              envvar='OO_ANSIBLE_PLAYBOOK_DIRECTORY')
 @click.option('--ansible-config',
     type=click.Path(file_okay=True,
         dir_okay=False,