Skip to content

Commit

Permalink
Merge pull request #4 from clouddrove/PR-1
Browse files Browse the repository at this point in the history
init java
  • Loading branch information
Nikita Dugar committed Jun 9, 2020
2 parents c75afcc + cc7f8b4 commit a163da5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Ansible Role Docker Jenkins
</h1>

<p align="center" style="font-size: 1.2rem;">
<p align="center" style="font-size: 1.2rem;">
This ansible role is used to install Jenkins with docker on server.
</p>

Expand Down Expand Up @@ -48,15 +48,15 @@



We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.
We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.

Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in [ansible-playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to achieve the desired yet consistent results.



## Prerequisites

This module has a few dependencies:
This module has a few dependencies:

- [Ansible2.8](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- [Python](https://www.python.org/downloads)
Expand All @@ -68,7 +68,7 @@ This module has a few dependencies:

## What Includes

Followiing things includes in this role:
Following things includes in this role:

- jenkins

Expand Down Expand Up @@ -127,7 +127,7 @@ Followiing things includes in this role:



## Feedback
## Feedback
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/ansible-role-docker-jenkins/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).

If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/ansible-role-docker-jenkins)!
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ jenkins_plugins:
caddy: true
cert_path: "/root/config"
key_path: "/root/config"

# node version
java_packages: openjdk-11-jdk
5 changes: 5 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@
service:
name: jenkins
state: restarted

- name: Ensure Java is installed.
apt:
name: "{{ java_packages }}"
state: present

0 comments on commit a163da5

Please sign in to comment.