# Tomcat Role for Windows

**URL:** <https://forum.ansible.com/t/tomcat-role-for-windows/26045>\
**Category:** Ansible Project\
**Tags:** windows, galaxy-ng\
**Created:** [November 16, 2017, 2:46pm UTC](https://forum.ansible.com/t/tomcat-role-for-windows/26045 "2017-11-16T14:46:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akazia.info](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@akazia.info](https://forum.ansible.com/u/akazia.info)\
**Post date:** [November 16, 2017, 2:46pm UTC](https://forum.ansible.com/t/tomcat-role-for-windows/26045/1 "2017-11-16T14:46:05Z")

</div>

Hello,

I am kind of new to ansible. I did my first steps and got the ping from my control server to a windows machine up and working. So far so good.  
Now I need to install Tomcat from scratch and add later on some patches. I was in the hope to find some example roles on ansible-galaxy but there are non for Tomcat on Windows.  
So here is my question, does any one know w source for such a role which I can use as a base to develop upon?

Thank you very much  
Michael

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [November 16, 2017, 5:43pm UTC](https://forum.ansible.com/t/tomcat-role-for-windows/26045/2 "2017-11-16T17:43:58Z")

</div>

This is a bit old (jdk8, tomcat8) and has a few assumptions which might not be true for your environment (the jdk and tomcat installers are kept on a web server refered to as {{build\_server}}. Its two roles one for the jdk and one for tomcat.

Definitely some things could be improved - likely you don’t need a jdk, only a JRE for a start. The service restart might not be correct and might be better as a handler anyway.

Hopefully this is enough to get you started though.

Jon  
`

$:~/roles/win-jdk$ tree -A  
.  
├── defaults  
│ └── main.yml  
└── tasks  
└── main.yml

2 directories, 2 files  
$:~/roles/win-jdk$ cat defaults/main.yml
