[Server-devel] [XSCE] Re: New release xs-authserver 0.1.6 (included in XSCE 5.0)

Miguel González Álvarez migonzalvar at gmail.com
Sat Feb 15 13:59:10 EST 2014


On Sat, Feb 15, 2014 at 7:21 PM, Tim Moody <tim at timmoody.com> wrote:
> the pip install step must be done separately before ansible rerun is fixed.
>
> I had hoped that simply rerunning ansible would pick up the change.
>

As it's now, ansible doesn't upgrade an existing package.

I'm thinking a better approach would be to use always explicit version number:

diff --git a/roles/authserver/tasks/main.yml b/roles/authserver/tasks/main.yml
index dfd73c5..223397d 100644
--- a/roles/authserver/tasks/main.yml
+++ b/roles/authserver/tasks/main.yml
@@ -5,7 +5,7 @@
     - download

 - name: install xs-authserver from pypi
-  pip: name=xs-authserver
+  pip: name=xs-authserver==0.1.7
   tags:
     - download

>
> Tim
> -----Original Message----- From: Miguel González
> Sent: Thursday, February 13, 2014 7:30 AM
> To: xsce-devel ; XS Devel
> Subject: [XSCE] Re: New release xs-authserver 0.1.6 (included in XSCE 5.0)
>
> On Thu, Feb 13, 2014 at 12:29 AM, Miguel González
> <migonzalvar at activitycentral.com> wrote:
>>
>> I've just released a new minor version of xs-authserver [1]. Now it
>> doesn't raise an error when the init database command is executed
>> twice.
>>
>> This change fixes the problem with ansible task "authserver | install
>> xs-authserver from pypi" failing when re running the playbook [2].
>>
>> To update an installed XSCE server it's possible to simply run pip::
>>
>>     $ sudo pip install --upgrade xs-authserver
>>
>>
>> 1: https://pypi.python.org/pypi/xs-authserver
>>
>> 2: See attached patch
>>
>> --
>> Miguel González
>> Activity Central: http://www.activitycentral.com
>
>
> I did further testing and found another error. It was caused by
> Internet-in-a-box installing a previous version of Python flask. I had
> to change init database command to be backwards compatible.
>
> I released 0.1.7 with this change.
>
> Now, finally, `runansible` doesn't raise any errors.
>
> --
> Miguel González
> Activity Central: http://www.activitycentral.com



-- 
Miguel González
migonzalvar at gmail.com
PGP ID: 0C63761BEEBD05D3


More information about the Server-devel mailing list