From b848b61a9e7f6a786316558bf1f99c3fa1aaedd2 Mon Sep 17 00:00:00 2001 From: Adam Brokes Date: Tue, 12 Nov 2019 15:40:18 +1100 Subject: [PATCH] DCD-798: Use correct ansible argument for the env variable --- roles/restore_backups/tasks/amazon.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/restore_backups/tasks/amazon.yml b/roles/restore_backups/tasks/amazon.yml index 0758693..4c5fe09 100644 --- a/roles/restore_backups/tasks/amazon.yml +++ b/roles/restore_backups/tasks/amazon.yml @@ -2,6 +2,8 @@ # Amazon Linux 2 supplies extra packages via a special command. - name: Enable Postgresql from 'extras' - command: PYTHON=/bin/python amazon-linux-extras install -y "postgresql{{ postgres_version }}" + command: amazon-linux-extras install -y "postgresql{{ postgres_version }}" + environment: + PYTHON: /bin/python args: creates: /usr/bin/psql