Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias Import alias identifier Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Str AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index NameLoad NameLoad body Continue If CompareIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Continue If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Continue If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad orelse Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SetComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Return NameLoad orelse Return Call AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad orelse TryExcept body With Call NameLoad Call NameLoad Str AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return TupleLoad Call NameLoad Call NameLoad If CompareNotIn Str NameLoad body Raise Call NameLoad Call AttributeLoad Str attr Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore SetComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str CompareIs Call NameLoad NameLoad NameLoad AugAssignBitOr NameStore SetComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str CompareIs Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad NameLoad body AugAssignBitOr NameStore Set NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A datetime datetime N/A re N/A shutil N/A os logging debug N/A yaml servi.manifest Manifest servi.exceptions ServiError ForceError servi.utils file_exists pathfor N/A servi.config c N/A BACKUP_PREFIX _BACKUP_ TemplateManager N/A object N/A __init__ N/A N/A self raw_template_playbook N/A None N/A N/A N/A self m_master None N/A N/A self m_master_saved None N/A N/A self m_template None N/A N/A self master_playbook_exists ForceError N/A N/A self t_added N/A set N/A N/A self t_changed N/A set N/A N/A self t_removed N/A set N/A N/A self t_mod N/A set N/A N/A self t_mod_but_ignored N/A set N/A N/A self m_added N/A set N/A N/A self m_changed N/A set N/A N/A self m_removed N/A set N/A N/A self m_mod N/A set N/A N/A self m_mod_but_ignored N/A set N/A N/A self roles N/A set N/A N/A self possible_roles N/A set N/A N/A self modified_possible_roles N/A set N/A N/A self role_of_fname None N/A N/A self timestamp N/A N/A datetime utcnow N/A N/A self raw_template_playbook raw_template_playbook N/A N/A self m_master N/A Manifest N/A c MASTER N/A N/A self m_template N/A Manifest N/A c TEMPLATE N/A N/A N/A self update_tmgr N/A update_tmgr N/A N/A self N/A N/A N/A N/A N/A N/A self m_master_saved N/A Manifest N/A c MASTER load True N/A N/A N/A FileNotFoundError N/A N/A N/A self m_master_saved None N/A N/A self master_playbook_exists N/A file_exists N/A pathfor ansible_config/playbook.yml N/A c MASTER N/A N/A N/A self t_added N/A self t_changed N/A self t_removed N/A N/A Manifest diff_files N/A self m_master N/A self m_template N/A N/A self t_mod N/A N/A self t_changed N/A self t_removed N/A N/A self t_mod_but_ignored N/A N/A self ignored_files N/A self t_mod N/A N/A self m_master_saved N/A N/A N/A N/A self m_added N/A self m_changed N/A self m_removed N/A N/A Manifest diff_files N/A self m_master N/A self m_master_saved N/A N/A self m_mod N/A N/A self m_changed N/A self m_removed N/A N/A self m_mod_but_ignored N/A N/A self ignored_files N/A self m_mod N/A N/A N/A N/A self m_added N/A self m_changed N/A self m_removed N/A self m_mod N/A self m_mod_but_ignored N/A N/A set N/A set N/A set N/A set N/A set N/A rm N/A RoleManager N/A self t_changed N/A self raw_template_playbook N/A N/A self roles N/A rm roles N/A N/A self possible_roles N/A rm possible_roles N/A N/A self modified_possible_roles N/A rm modified_possible_roles N/A N/A self role_of_fname N/A rm role_of_fname N/A init_master N/A N/A self exclude_files N/A None N/A N/A N/A exclude_files None N/A N/A exclude_files N/A N/A N/A N/A self copy_files exclude_files exclude_files N/A update_master N/A N/A self N/A N/A N/A N/A N/A self copy_files exclude_files N/A self t_mod_but_ignored N/A rename_master_file N/A N/A fname timestamp N/A N/A N/A 
        This basically backs up fname (but MOVES it).
        fname is the normalized fname
        Stored in a dirctory: _BACKUP_{UTC_TIMESTAMP}
         N/A backupdir N/A N/A {0}_{1} format BACKUP_PREFIX N/A N/A timestamp isoformat N/A N/A N/A N/A N/A os path exists backupdir N/A N/A N/A N/A os mkdir backupdir N/A subdir N/A N/A N/A os path join backupdir N/A N/A N/A os path dirname fname N/A N/A N/A N/A N/A os path exists subdir N/A N/A N/A N/A os makedirs subdir N/A N/A N/A shutil move N/A pathfor fname N/A c MASTER subdir N/A staticmethod copy_files N/A N/A self exclude_files N/A N/A N/A N/A fname template_hash N/A N/A N/A N/A N/A self m_template manifest N/A files items N/A N/A template_fname N/A pathfor fname N/A c TEMPLATE N/A master_fname N/A pathfor fname N/A c MASTER N/A N/A N/A N/A N/A N/A self m_master manifest N/A files N/A fname template_hash N/A N/A N/A N/A fname exclude_files N/A N/A N/A _cur_role N/A N/A self role_of_fname fname N/A N/A _cur_role N/A self master_playbook_exists N/A _cur_role N/A self roles N/A N/A N/A debug N/A N/A Skipping unused role file: {0} format fname N/A N/A N/A fname N/A c SERVIFILE_GLOBAL N/A N/A master_fname N/A c SERVIFILE_GLOBAL_FULL N/A N/A N/A N/A N/A N/A N/A os path split fname N/A 1 .git N/A N/A N/A os path isfile template_fname N/A N/A N/A debug N/A N/A Skipping .git file (submodule marker): {0} format fname N/A N/A N/A file_exists master_fname N/A N/A N/A N/A self rename_master_file fname N/A self timestamp N/A existing True N/A N/A existing False N/A destdir N/A N/A N/A os path dirname master_fname N/A N/A destdir N/A N/A N/A N/A os path exists destdir N/A N/A N/A N/A os makedirs destdir N/A N/A N/A shutil copy2 template_fname master_fname N/A existing N/A N/A N/A debug N/A N/A Updated: {0} format master_fname N/A N/A N/A debug N/A N/A Created: {0} format master_fname N/A m N/A Manifest N/A c MASTER N/A N/A N/A m save N/A N/A N/A self update_tmgr N/A True N/A ignored_files N/A N/A files N/A N/A N/A 
        Sees if any of files are in the ignore regex set by Servifile.yml
        (initialized in config.py)
         N/A ignore_list N/A c SERVI_IGNORE_FILES N/A ignore_re_string N/A N/A ( N/A N/A | join ignore_list ) N/A ignore_re N/A N/A re compile ignore_re_string N/A ignored N/A file N/A file files N/A N/A ignore_re search file N/A ignored N/A staticmethod N/A RoleManager N/A object N/A __init__ N/A N/A self changed_files raw_template_playbook N/A None N/A N/A N/A N/A self roles N/A self possible_roles N/A N/A self _get_master_roles N/A N/A self _get_template_roles raw_template_playbook N/A N/A self modified_possible_roles N/A N/A self _get_modified_possible_roles changed_files N/A self possible_roles N/A role_of_fname N/A N/A normalized_fname N/A N/A N/A 
        returns a role if normalized_fname looks like a role
        ansible_config/roles/baseUbuntu/* --> baseUbuntu
        apache_config/sites_available/mysite --> None
         N/A match N/A N/A re search ansible_config/roles/([^/]*)(/.+|) normalized_fname N/A N/A match N/A N/A None N/A N/A N/A N/A match group 1 N/A staticmethod _get_template_roles N/A N/A N/A N/A N/A template_dir N/A N/A N/A os path join N/A c TMPL_DIR_SITE ansible_config/roles N/A roles N/A path N/A path N/A N/A os listdir template_dir N/A N/A N/A os path isdir N/A N/A N/A os path join template_dir path N/A N/A set roles N/A staticmethod _get_master_roles N/A N/A template_roles test_raw N/A None N/A N/A test_raw N/A N/A playbook N/A N/A yaml load test_raw N/A playbook N/A playbook N/A 0 N/A playbook_raw test_raw N/A N/A N/A N/A N/A open N/A pathfor ansible_config/playbook.yml N/A c MASTER r fp N/A N/A playbook N/A N/A yaml load fp N/A N/A N/A fp seek 0 N/A playbook N/A playbook N/A 0 N/A playbook_raw N/A N/A fp read N/A N/A N/A FileNotFoundError N/A N/A N/A N/A set N/A set N/A N/A roles playbook N/A N/A N/A ServiError N/A N/A "roles" not found in {0} format N/A pathfor ansible_config/playbook.yml N/A c MASTER N/A roles N/A role N/A role N/A playbook N/A roles N/A N/A type role str N/A roles N/A N/A role N/A role N/A role N/A playbook N/A roles N/A N/A type role dict N/A possible_roles N/A set N/A t_role template_roles N/A N/A N/A N/A re search N/A N/A ^.*#.*{0}\s format t_role playbook_raw flags N/A N/A re IGNORECASE N/A re MULTILINE N/A N/A N/A N/A possible_roles add t_role N/A N/A roles possible_roles N/A staticmethod _get_modified_possible_roles N/A N/A changed_files possible_roles N/A N/A N/A retval N/A set N/A fname changed_files N/A N/A role N/A N/A RoleManager role_of_fname fname N/A N/A role possible_roles N/A N/A retval N/A role N/A retval N/A staticmethod N/A