Comments (3)
I ran into the same issue
TASK [geerlingguy.java : Ensure Java is installed.] ****************************
failed: [host] (item=[u'openjdk-7-jdk']) => {"cache_update_time": 0, "cache_updated": false, "failed": true, "item": ["openjdk-7-jdk"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'openjdk-7-jdk'' failed: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\n", "stderr": "E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\n", "stdout": "", "stdout_lines": []}
to retry, use: --limit @playbook.retry
from ansible-role-java.
@donnoman you can use my branch to get around this. See pull request: #14
from ansible-role-java.
This role is meant to be run entirely as a privileged user—so either run the entire playbook with become
or as root
, or you can run just the role this way, e.g.:
---
- hosts: all
roles:
- name: geerlingguy.java
become: yes
from ansible-role-java.
Related Issues (20)
- Installing this with ansible-galaxy fails on certificate issue HOT 1
- Add OracleLinux distribution HOT 3
- Centos7 Issue HOT 2
- Ubuntu vagrant box support HOT 3
- Role needs ability to check and ensure a specific version of JDK is installed HOT 2
- Fix ansible-lint issue HOT 3
- Ubuntu 20.04 - openjdk-8 installs openjdk-11 HOT 1
- For people wanting jps support
- openjdk-11-jdk on Ubuntu 20.04 Focal Fossa LTS HOT 2
- Code style HOT 1
- Java 11 is available on Red Hat/CentOS 7
- Ensure Java is installed: install 'openjdk-11-jdk'' failed HOT 2
- man directory task always changed on Ubuntu 20.04 HOT 5
- Add Red Hat 9 (rockylinux9) support
- Feature: Need Amazon Linux 2 inclusion in supported OS list HOT 2
- uninstall the openjdk ubuntu in virtualmachine HOT 3
- Feature suggestion: add root certificates to truststore HOT 3
- geerlingguy.java was NOT installed successfully: Unable to compare role versions HOT 3
- no java packages installed on Oracle Linux HOT 2
- SyntaxError: future feature annotations is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-java.