mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 12:57:40 -02:30
per-jt most recent fact scan gathering
* Remove system tracking piggybacked most-recent-fact-gathering * Add explicit per-jobtemplate configurable fact gathering * Continue to support system tracking * Fixed a bug where we weren't ack()ing system tracking rabbit msgs
This commit is contained in:
@@ -48,10 +48,21 @@ class Migration(migrations.Migration):
|
||||
name='ansible_facts',
|
||||
field=awx.main.fields.JSONBField(default={}, help_text='Arbitrary JSON structure of most recent ansible_facts, per-host.', blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='job',
|
||||
name='gather_facts',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='jobtemplate',
|
||||
name='gather_facts',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.RunSQL([("CREATE INDEX host_ansible_facts_default_gin ON %s USING gin"
|
||||
"(ansible_facts jsonb_path_ops);", [AsIs(Host._meta.db_table)])],
|
||||
[('DROP INDEX host_ansible_facts_default_gin;', None)]),
|
||||
|
||||
|
||||
# SCM file-based inventories
|
||||
migrations.AddField(
|
||||
model_name='inventorysource',
|
||||
|
||||
Reference in New Issue
Block a user