Created
October 29, 2020 10:20
-
-
Save jc1518/39bb715c894a05d0ac8645d6eab99f5c to your computer and use it in GitHub Desktop.
jira_remove_old_operations.yaml
This file contains 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
--- | |
- 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