Comments (3)
You will need to create a new block with same host and move roles under that. The way you have it setup now runs the roles first and then run tasks that you outline.
- hosts: spring-boot-ansible
become: yes
gather_facts: yes
tasks:
- name: installing repo for Java 8 in Ubuntu
apt_repository: repo='ppa:openjdk-r/ppa'
- hosts: spring-boot-ansible
become: yes
gather_facts: yes
roles:
- role: geerlingguy.java
when: "ansible_os_family == 'Debian'"
java_packages:
- openjdk-8-jdk
from ansible-role-java.
Thanks, indeed it works like this.
from ansible-role-java.
In my case and apt update/upgrade solved the issue.
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.