Find below Ansible playbook to install Java 8 on Ubuntu
Step 1: Create the playbook first with name. for e.g, installJava.xml
---
- hosts: Java_Group
tasks:
- name: Update APT package manager repositories cache
become: true
apt:
update_cache: yes
- name: Install OpenJDK Java
become: yes
apt:
name: "{{ item }}"
state: present
with_items:
openjdk-8-jdk
2. sudo vi /etc/ansible/hosts
make sure you add below entry with target node IP changed (in red color).
[Java_Group]
xx.xx.xx.xx ansible_ssh_user=ubuntu ansible_ssh_private_key_file=~
3. sudo ansible-playbook installJava.xml
can u please help me how to check java in remote host, if java is not insatlled it should be insatll now. how to write a playbook for that
ReplyDeletei am looking for the same
DeleteI was just looking for it. It worked, thanks!
ReplyDelete13B082CD82
ReplyDeletekiralık hacker
hacker bulma
tütün dünyası
-
-
52693976CD
ReplyDeleteGörüntülü Sex
Sanal Seks
Telegram Görüntülü Show Grupları
C366F97D
ReplyDeleteçarşamba esçort
gazipaşa esçort
tekirdağ esçort
dikmen esçort
esçort sinop
esçort bayan sivas
esçort kocaeli
esçort balıkesir
gümüşhane esçort
567860DB
ReplyDeletearsuz esçort
aliağa esçort
boyabat esçort
samsun esçort numaraları
esçort bayan giresun
payas esçort
bergama esçort
kütahya esçort
tarsus esçort