From b3c7f193246bce1b155f85bea7ca89b44e8e01b7 Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Sun, 24 Apr 2016 19:53:07 -0600 Subject: [PATCH 1/3] - updated minimum ansible version - ansiblebit/macports only makes sense for darwin/macosx - improved description --- meta/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index bfcb6a0..9a6d80a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -5,10 +5,10 @@ # galaxy_info: author: Pedro Salgado - description: Role for PostgreSQL on MacOSX. + description: Role for PostgreSQL server on MacOSX. company: ansiblebit.org license: BSD - min_ansible_version: 1.7.2 + min_ansible_version: 1.9.4 platforms: - name: MacOSX versions: @@ -18,3 +18,4 @@ galaxy_info: - database dependencies: - role: ansiblebit.macports + when: (ansible_distribution | lower == 'darwin') or (ansible_distribution | lower == 'macosx') From 5e2516d6bfdbbdc79a7e3b9fb73515ac0bb5c5db Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Sun, 24 Apr 2016 20:00:43 -0600 Subject: [PATCH 2/3] - set postgresql_version as string to avoid ansible interpreting it as float --- defaults/main.yml | 2 +- tests/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index f91a035..63aad06 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,6 +9,6 @@ postgresql_set_default: yes postgresql_users: - "{{ ansible_env.USER }}" -postgresql_version: 9.5 +postgresql_version: '9.5' postgresql_major_version: "{{ postgresql_version.split('.')[0] }}" postgresql_minor_version: "{{ postgresql_version .split('.')[1] }}" diff --git a/tests/test.yml b/tests/test.yml index 3aa332d..7b2b8a1 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -10,7 +10,7 @@ macports_selfupdate: no macports_upgrade_outdated: no - postgresql_version: 9.5.2 + postgresql_version: '9.5' postgresql_set_default: yes postgresql_users: - steenzout From b3697a774e556995ac9bdc6dcf3ceae580f8ca29 Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Sun, 24 Apr 2016 20:10:41 -0600 Subject: [PATCH 3/3] fixed URLs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 597b5ae..3c10cd8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # PostgreSQL server -[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg?style=flat)](https://raw.githubusercontent.com/ansiblebit/postgresql/master/LICENSE) +[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg?style=flat)](https://raw.githubusercontent.com/ansiblebit/postgresql_server/master/LICENSE) [![Platform](http://img.shields.io/badge/platform-macosx-000000.svg?style=flat)](#) -[![Project Stats](https://www.openhub.net/p/ansiblebit-postgresql/widgets/project_thin_badge.gif)](https://www.openhub.net/p/ansiblebit-postgresql/) +[![Project Stats](https://www.openhub.net/p/ansiblebit-postgresql-server/widgets/project_thin_badge.gif)](https://www.openhub.net/p/ansiblebit-postgresql-server/) Ansile role to setup [PostgreSQL][postgresql] server on OSX. @@ -48,7 +48,7 @@ it may be a good idea to mention in this section that the boto package is requir macports_selfupdate: no macports_upgrade_outdated: no - postgresql_version: 9.5 + postgresql_version: '9.5' postgresql_set_default: yes postgresql_users: - steenzout