Code Monkey home page Code Monkey logo

ansible-oracle_java7-role's Issues

Using this role sometimes apt-get throws weird errors.

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
gsfonts gsfonts-x11 java-common
Suggested packages:
default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfonts
ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel
mozilla-firefox iceape-browser mozilla-browser epiphany-gecko
epiphany-webkit epiphany-browser galeon midbrowser moblin-web-browser
xulrunner xulrunner-1.9 konqueror chromium-browser midori google-chrome
The following NEW packages will be installed:
gsfonts gsfonts-x11 java-common oracle-java7-installer
oracle-java7-set-default
0 upgraded, 5 newly installed, 0 to remove and 100 not upgraded.
Need to get 3540 kB of archives.
After this operation, 5461 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-installer all 7u80+7u60arm-0webupd81 [22.4 kB]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-set-default all 7u80+7u60arm-0webupd81 [4782 B]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main java-common all 0.51 [130 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main gsfonts all 1:8.11+urwcyr1.0.7pre44-4.2ubuntu1 [3374 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main gsfonts-x11 all 0.22 [9108 B]
Preconfiguring packages ...
Fetched 3540 kB in 10s (329 kB/s)
Selecting previously unselected package java-common.
(Reading database ... 60980 files and directories currently installed.)
Preparing to unpack .../java-common_0.51_all.deb ...
Unpacking java-common (0.51) ...
Selecting previously unselected package oracle-java7-installer.
Preparing to unpack .../oracle-java7-installer_7u80+7u60arm-0
webupd81_all.deb ...
Unpacking oracle-java7-installer (7u80+7u60arm-0
webupd81) ...
Selecting previously unselected package gsfonts.
Preparing to unpack .../gsfonts_1%3a8.11+urwcyr1.0.7
pre44-4.2ubuntu1_all.deb ...
Unpacking gsfonts (1:8.11+urwcyr1.0.7pre44-4.2ubuntu1) ...
Selecting previously unselected package gsfonts-x11.
Preparing to unpack .../gsfonts-x11_0.22_all.deb ...
Unpacking gsfonts-x11 (0.22) ...
Selecting previously unselected package oracle-java7-set-default.
Preparing to unpack .../oracle-java7-set-default_7u80+7u60arm-0
webupd81_all.deb ...
Unpacking oracle-java7-set-default (7u80+7u60arm-0
webupd81) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Setting up java-common (0.51) ...
Setting up oracle-java7-installer (7u80+7u60arm-0
webupd81) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7
pre44-4.2ubuntu1) ...
Setting up gsfonts-x11 (0.22) ...
Setting up oracle-java7-set-default (7u80+7u60arm-0webupd81) ...

fatal: [test] => Traceback (most recent call last):
File "/usr/local/Cellar/ansible/1.9.2/libexec/lib/python2.7/site-packages/ansible/runner/init.py", line 582, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/usr/local/Cellar/ansible/1.9.2/libexec/lib/python2.7/site-packages/ansible/runner/init.py", line 785, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/usr/local/Cellar/ansible/1.9.2/libexec/lib/python2.7/site-packages/ansible/runner/init.py", line 1116, in _executor_internal_inner
self.callbacks.on_ok(host, data)
File "/usr/local/Cellar/ansible/1.9.2/libexec/lib/python2.7/site-packages/ansible/callbacks.py", line 547, in on_ok
super(PlaybookRunnerCallbacks, self).on_ok(host, host_result)
File "/usr/local/Cellar/ansible/1.9.2/libexec/lib/python2.7/site-packages/ansible/callbacks.py", line 347, in on_ok
call_callback_module('runner_on_ok', host, res)
File "/usr/local/Cellar/ansible/1.9.2/libexec/lib/python2.7/site-packages/ansible/callbacks.py", line 179, in call_callback_module
method(_args, *_kwargs)
File "/Users/bas/code/buildserver/plugins/callbacks/human_log.py", line 22, in runner_on_ok
human_log(res)
File "/Users/bas/code/buildserver/plugins/callbacks/human_log.py", line 11, in human_log
print '\n{0}:\n{1}'.format(field, res[field])
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 1355: ordinal not in range(128)

Need to add seen true

Oracle seems to have added another little bit to this, so in order to use your code, I had to add the following:

  • name: mark oracle license as seen
    shell: echo "debconf shared/accepted-oracle-license-v1-1 seen true" | debconf-set-selections

referencing this: http://askubuntu.com/questions/190582/installing-java-automatically-with-silent-option

Without that, i was getting:
msg: 'apt-get install 'oracle-java7-installer' ' failed:
oracle-license-v1-1 license could not be presented
try 'dpkg-reconfigure debconf' to select a frontend other than noninteractive

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.