ansible-community / ara-collection

Collection of Ansible roles for ARA Records Ansible.
https://ara.recordsansible.org
GNU General Public License v3.0
28 stars 16 forks source link

Made SQL migration task aware of output #12

Closed Thulium-Drake closed 3 years ago

Thulium-Drake commented 3 years ago

This PR enhances the tasks that run SQL migrations to only report changes if there are actual changes that have been applied.

The test is really simple, just check for the presence of 'No migrations to apply' in the stdout of the command. If it's found, no changes have been made.

This was the only task changing every day in my ARA reports, which bugged me ;-)

Thulium-Drake commented 3 years ago

Submitted here https://review.opendev.org/c/recordsansible/ara-collection/+/773410

dmsimard commented 3 years ago

@Thulium-Drake this is a good idea! I replied in the review.