Skip to content

Commit

Permalink
Merge pull request ANXS#65 from numerigraphe/apt-false-is-distro
Browse files Browse the repository at this point in the history
Only do APT tasks if variables have true values
  • Loading branch information
David Farrington committed Feb 24, 2015
2 parents 55e9dca + cd992ba commit 47fb285
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 47fb285

Please sign in to comment.