Skip to content

Instantly share code, notes, and snippets.

@angshu
Created October 30, 2019 07:49
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 angshu/d3ad1dcd93b87a3ad65145b34400a28c to your computer and use it in GitHub Desktop.
Save angshu/d3ad1dcd93b87a3ad65145b34400a28c to your computer and use it in GitHub Desktop.
- 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