Exemplo n.º 1
0
    def __init__(self, config):
        """
        Initialize a new ansible class and returns None.

        :param config: An instance of a Molecule config.
        :return: None
        """
        super(Ansible, self).__init__(config)
        self._ansible_playbooks = ansible_playbooks.AnsiblePlaybooks(config)
 def playbooks(self):
     if not self._playbooks:
         # Inject a default verify_fetch_report playbook filename.
         if 'verify_fetch_report' not in self._config.config['provisioner'][
                 'playbooks']:
             self._config.config['provisioner']['playbooks'][
                 'verify_fetch_report'] = 'verify_fetch_report.yml'
         self._playbooks = ansible_playbooks.AnsiblePlaybooks(self._config)
     return self._playbooks
Exemplo n.º 3
0
def _instance(_provisioner_section_data, config_instance):
    return ansible_playbooks.AnsiblePlaybooks(config_instance)
Exemplo n.º 4
0
 def playbooks(self):
     return ansible_playbooks.AnsiblePlaybooks(self._config)