Skip to content

Commit

Permalink
Only do APT tasks if variables have true values
Browse files Browse the repository at this point in the history
This lets us set the variables to False to use the packages provided by the distribution without further ado.
  • Loading branch information
Lionel Sausin (Numérigraphe) committed Feb 6, 2015
1 parent 55e9dca commit cd992ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
id: "{{ postgresql_apt_key_id }}"
url: "{{ postgresql_apt_key_url }}"
state: present
when: postgresql_apt_key_url and postgresql_apt_key_id

- name: PostgreSQL | Add PostgreSQL repository
apt_repository:
repo: "{{ postgresql_apt_repository }}"
state: present
when: postgresql_apt_repository

- name: PostgreSQL | Make sure the dependencies are installed
apt:
Expand Down

0 comments on commit cd992ba

Please sign in to comment.