Thanks everyone. I'm running pkgin on Smartos. I added the
ACCEPTABLE_LICENSES (ACCEPTABLE_LICENSES=            sun-jre) to the
mk.conf file in /opt/local/share/mk folder. Works great.

But I think setting an environment variable in the ansible is easier. In my
case, I set it in the role vars file.

license_env:
  ACCEPTABLE_LICENSES: 'sun-jre6'

And then in the task:

- name: Install Java
  pkgin: name=sun-jre6 state=present
  environment: license_env
  tags: logstash









Thanks,
Paul


On Fri, Feb 7, 2014 at 1:24 PM, Brian Coca <[email protected]> wrote:

> I'm assuming BSD, you probably have to add to the ACCEPTABLE_LICENSES
> variable (check BSD distro for where to do so). Adding it to environment:
> on your task might even work.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/uowowhBY83c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 

Paul Wolstenholme
CBC Music - System Administrator
CBC  Vancouver
604.662.6632

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to