@staticmethod
  def init(args): 
    """
      Create the ansible inventory for the environment
        based on the deployment model and other variables
    """  
    exec_results = EnvironmentManager(args).init()
    print_playbook_results(exec_results)

    if ("playbook_results" in exec_results and 
      getattr(exec_results["playbook_results"], "statuscode", -1)) == 0:
      print ""
      print "The Ansible inventory for your environment has now been initialized.\
  Deploy the environment with the `deploy` command.\n"
      print "You can view the inventory for this environment in {}".format(
        exec_results['env'].env_inventory_path)
dataset/ETHPy150Open F5Networks/aws-deployments/src/f5_aws/cli.py/CLI.init/original