This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| hosts: all | |
| tasks: | |
| - name: add github ssh key | |
| copy: > | |
| src=files/id_rsa.github | |
| dest=/root/.ssh/id_rsa.github | |
| owner=root | |
| group=root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Requires use of Flask Login for the user tracking | |
| # Implement by using AuditableMixin in your model class declarations | |
| # e.g. class ImportantThing(AuditableMixin, Base): | |
| import json | |
| from flask_login import current_user | |
| from sqlalchemy import event, inspect | |
| from sqlalchemy.orm import class_mapper | |
| from sqlalchemy.orm.attributes import get_history |