#NEWLINE# def update_tmgr( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . m_master_saved = Manifest ( c . MASTER , load = True ) #NEWLINE# #UNINDENT# except FileNotFoundError : #NEWLINE# #INDENT# self . m_master_saved = None #NEWLINE# #UNINDENT# self . master_playbook_exists = file_exists ( pathfor ( 'ansible_config/playbook.yml' , c . MASTER ) ) #NEWLINE# ( self . t_added , self . t_changed , self . t_removed ) = Manifest . diff_files ( self . m_master , self . m_template ) #NEWLINE# self . t_mod = ( self . t_changed | self . t_removed ) #NEWLINE# self . t_mod_but_ignored = self . ignored_files ( self . t_mod ) #NEWLINE# if self . m_master_saved : #NEWLINE# #INDENT# ( self . m_added , self . m_changed , self . m_removed ) = Manifest . diff_files ( self . m_master , self . m_master_saved ) #NEWLINE# self . m_mod = ( self . m_changed | self . m_removed ) #NEWLINE# self . m_mod_but_ignored = self . ignored_files ( self . m_mod ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( self . m_added , self . m_changed , self . m_removed , self . m_mod , self . m_mod_but_ignored ) = ( set ( ) , set ( ) , set ( ) , set ( ) , set ( ) ) #NEWLINE# #UNINDENT# rm = RoleManager ( self . t_changed , self . raw_template_playbook ) #NEWLINE# self . roles = rm . roles #NEWLINE# self . possible_roles = rm . possible_roles #NEWLINE# self . modified_possible_roles = rm . modified_possible_roles #NEWLINE# self . role_of_fname = rm . role_of_fname