當前位置: 首頁>>代碼示例>>Python>>正文


Python constants.RETRY_FILES_ENABLED屬性代碼示例

本文整理匯總了Python中ansible.constants.RETRY_FILES_ENABLED屬性的典型用法代碼示例。如果您正苦於以下問題:Python constants.RETRY_FILES_ENABLED屬性的具體用法?Python constants.RETRY_FILES_ENABLED怎麽用?Python constants.RETRY_FILES_ENABLED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在ansible.constants的用法示例。


在下文中一共展示了constants.RETRY_FILES_ENABLED屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from ansible import constants [as 別名]
# 或者: from ansible.constants import RETRY_FILES_ENABLED [as 別名]
def __init__(self, playbook_path, inventory=None, options=None):
        """
        :param options: Ansible options like ansible.cfg
        :param inventory: Ansible inventory
        :param BaseInventory:The BaseInventory parameter hostname must be equal to the hosts in yaml
        or the BaseInventory parameter groups must equal to the hosts in yaml.
        """
        if options:
            self.options = options
        C.RETRY_FILES_ENABLED = False
        self.inventory = inventory
        # self.loader = self.loader_class()
        self.loader = DataLoader()
        self.results_callback = self.results_callback_class()
        # self.playbook_path = options.playbook_path
        self.playbook_path = playbook_path
        self.variable_manager = self.variable_manager_class(
            loader=self.loader, inventory=self.inventory
        )
        # self.passwords = options.passwords
        self.passwords = {"passwords": ''}  # 為了修改paramiko中的bug添加入,無實際意義
        self.__check() 
開發者ID:hequan2017,項目名稱:chain,代碼行數:24,代碼來源:runner.py

示例2: __init__

# 需要導入模塊: from ansible import constants [as 別名]
# 或者: from ansible.constants import RETRY_FILES_ENABLED [as 別名]
def __init__(self, playbook_path, inventory=None, options=None):
            """
            :param options: Ansible options like ansible.cfg
            :param inventory: Ansible inventory
            :param BaseInventory:The BaseInventory parameter hostname must be equal to the hosts in yaml
            or the BaseInventory parameter groups must equal to the hosts in yaml.
            """
            if options:
                self.options = options
            C.RETRY_FILES_ENABLED = False
            self.inventory = inventory
            # self.loader = self.loader_class()
            self.loader = DataLoader()
            self.results_callback = self.results_callback_class()
            # self.playbook_path = options.playbook_path
            self.playbook_path = playbook_path
            self.variable_manager = self.variable_manager_class(
                loader=self.loader, inventory=self.inventory
            )
            # self.passwords = options.passwords
            self.passwords = {"passwords":''}#為了修改paramiko中的bug添加入,無實際意義
            self.__check() 
開發者ID:hequan2017,項目名稱:autoops,代碼行數:24,代碼來源:runner.py

示例3: __init__

# 需要導入模塊: from ansible import constants [as 別名]
# 或者: from ansible.constants import RETRY_FILES_ENABLED [as 別名]
def __init__(self, inventory, options=None, stdout=None):
        """
        :param options: Ansible full_options like ansible.cfg
        :param inventory: Ansible inventory_obj
        """
        super().__init__(inventory, options=options)
        C.RETRY_FILES_ENABLED = False 
開發者ID:KubeOperator,項目名稱:KubeOperator,代碼行數:9,代碼來源:runner.py


注:本文中的ansible.constants.RETRY_FILES_ENABLED屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。