Hi, i’m confused with execution order.
Here is a problem:
TASK: [common | installing oracle java] ***************************************
changed: [ec2-52-17-234-176.eu-west-1.compute.amazonaws.com]
changed: [ec2-52-17-201-78.eu-west-1.compute.amazonaws.com]
changed: [ec2-52-17-234-141.eu-west-1.compute.amazonaws.com]
failed: [ec2-52-17-199-200.eu-west-1.compute.amazonaws.com] => {“changed”: true, “cmd”: “DEBIAN_FRONTEND=noninteractive apt-get -y install oracle-java7-installer oracle-java7-set-default”, “delta”: “0:00:03.892655”, “end”: “2015-04-24 14:35:48.676917”, “rc”: 100, “start”: “2015-04-24 14:35:44.784262”}
stderr: invoke-rc.d: initscript spark-worker, action “start” failed.
dpkg: error processing package spark-worker (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
spark-worker
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don’t understand why task:
- name: installing oracle java
shell: DEBIAN_FRONTEND=noninteractive apt-get -y install oracle-java7-installer oracle-java7-set-default
triggers:
stderr: invoke-rc.d: initscript spark-worker, action “start” failed.
how can I get the idea why it happens?
" installing oracle java" belongs to role common and spark-worker stuff is in other role executed after common role