Created
October 30, 2019 07:49
-
-
Save angshu/d3ad1dcd93b87a3ad65145b34400a28c to your computer and use it in GitHub Desktop.
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: Fallback to pgsqldump if pgbackrest not installed | |
debug: | |
msg: pgbackrest is not installed - {{ installed_pgbackrest.stdout.find("pgbackrest [options] [command]") == -1 }} | |
- name: run pgbackrest if it is installed | |
debug: | |
msg: pgbackrest is installed - {{ installed_pgbackrest.stdout.find("pgbackrest [options] [command]") >= 0 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment