Skip to content

Instantly share code, notes, and snippets.

@jc1518
Created October 29, 2020 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jc1518/39bb715c894a05d0ac8645d6eab99f5c to your computer and use it in GitHub Desktop.
Save jc1518/39bb715c894a05d0ac8645d6eab99f5c to your computer and use it in GitHub Desktop.
jira_remove_old_operations.yaml
---
- name: Delete old jira node operation records from replicatedindexoperation table
postgresql_query:
login_host: "{{ atl_db_host }}"
port: "{{ atl_db_port }}"
login_user: "{{ atl_db_root_user }}"
login_password: "{{ atl_db_root_password }}"
db: "{{ atl_jdbc_db_name }}"
query: DELETE FROM replicatedindexoperation AS Rep WHERE Rep.node_id NOT IN (SELECT node_id from clusternode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment