> On Feb 21, 2017, at 7:51 AM, Jonathan Perkin <[email protected]> wrote:
> 
> * On 2017-02-21 at 12:29 GMT, Rob Seastrom wrote:
> 
>> This morning I decided I'd try upgrading to whatever version of
>> Ansible pip gave me, which in this case was ansible 2.2.1.0
>> 
>> The offending line in the playbook is:
>> 
>>  - service: name=network/ssh enabled=yes state=restarted
>> 
>> which is about as bog standard as it gets.
> 
> FWIW I don't see this failure with ansible 2.1.2.0 from pkgsrc, so it
> may be a regression in 2.2.1.0.
> 

Per Jonathan's suggestion I went with 2.1.2 from pkgsrc last night and then 
fought with it for several hours early this morning to get past a new pain 
point, this time with the pkgin module, which I'm documenting here for the 
benefit of anyone else who might be similarly situated.  I'm testing in base-64 
16.4.1, with a target system of base-64 16.4.1.

Ansible's pkgin module, http://docs.ansible.com/ansible/pkgin_module.html is 
flagged as preview - as they say, "it is not guaranteed to have a backwards 
compatible interface."  In 2.1, new parameters "clean" and "update_cache" were 
added, which apparently changed some default behavior under the hood.  Some 
package installations still cause the Right Thing to happen without any further 
intervention, but other stuff doesn't (notably netatalk30), and you get a 
completely inscrutable error message.  I had other packages fail in odd ways 
and magically work again on the second try.

Adding "  - pkgin: clean=yes update_cache=yes" to your playbook before actually 
trying to install any packages seems to fix the problem.

Moreover, if you are goofing around with where you get your packages from by 
modifying /opt/local/etc/pkgin/repositories.conf as I do (I have an nginx cache 
running so as to be nice to Joyent and get somewhat faster transfers internally 
on the Nth time that I'm installing a particular package), you need to do the 
cache freshening *after* you change the source location.

Thanks for the help,

-r




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to