Skip to content

Commit

Permalink
Merge pull request ANXS#63 from sebalix/master
Browse files Browse the repository at this point in the history
Add some APT settings into variables allowing to set a custom (mirror) repository
  • Loading branch information
pjan committed Feb 6, 2015
2 parents 792f943 + b9bf19b commit 47774ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -609,3 +609,8 @@ postgresql_restart_after_crash: on
postgresql_env:
LC_ALL: "{{ postgresql_locale }}"
LC_LCTYPE: "{{ postgresql_locale }}"

# APT settings
postgresql_apt_key_id: ACCC4CF8
postgresql_apt_key_url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
postgresql_apt_repository: 'deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main'
6 changes: 3 additions & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

- name: PostgreSQL | Add PostgreSQL repository apt-key
apt_key:
id: ACCC4CF8
url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
id: "{{ postgresql_apt_key_id }}"
url: "{{ postgresql_apt_key_url }}"
state: present

- name: PostgreSQL | Add PostgreSQL repository
apt_repository:
repo: 'deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main'
repo: "{{ postgresql_apt_repository }}"
state: present

- name: PostgreSQL | Install PostgreSQL
Expand Down

0 comments on commit 47774ac

Please sign in to comment.