Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions July19/playbooks/non-idempotent.yml

This file was deleted.

39 changes: 29 additions & 10 deletions July19/roles/tomcat8/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
---
- name: fail for unsupported environmets
fail:
msg: Supported Platforms are ubuntu & rhel
when: ansible_os_family != "RedHat" || ansible_os_family != "Debian"
- name: install tomcat in ubuntu
include_tasks: tomcat8_ubuntu.yml
when: ansible_os_family == "Debian"
- name: install tomcat in Redhat
include_tasks: tomcat8_redhat.yml
when: ansible_os_family == "RedHat"
# tasks file for basic_structure
- name: update ubuntu packages & install tomcat8
apt:
name: tomcat8
update_cache: yes
state: present
- name: copy tomcat8 file
template:
src: templates/tomcat8.j2
dest: /etc/default/tomcat8
notify:
- restart tomcat8
- name: install additional tomcat packages
apt:
name: "{{ item }}"
state: present
loop: "{{ tomcat_additional_packages }}"
- name: copy tomcat users
template:
src: templates/tomcat-users.xml.j2
dest: /etc/tomcat8/tomcat-users.xml
notify:
- restart tomcat8
- name: copy game of life war into tomcat
get_url:
url: "{{ war_location }}"
dest: "/var/lib/tomcat8/webapps/{{ war_file_name }}"
notify:
- restart tomcat8
20 changes: 0 additions & 20 deletions Mar20/Exercise1.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions Mar20/Exercise1_centos.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions Mar20/Exercise1_ubuntu.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions Mar20/Exercise2.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions Mar20/command_demo.yaml

This file was deleted.

1 change: 0 additions & 1 deletion Mar20/demo.txt

This file was deleted.

24 changes: 0 additions & 24 deletions Mar20/filedemo.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Mar20/hosts

This file was deleted.

16 changes: 0 additions & 16 deletions Mar20/hosts.yaml

This file was deleted.

Empty file removed Mar20/hosts_centos
Empty file.
1 change: 0 additions & 1 deletion Mar20/hosts_ubuntu

This file was deleted.

3 changes: 0 additions & 3 deletions Mar20/lamp/dir.conf

This file was deleted.

3 changes: 0 additions & 3 deletions Mar20/lamp/info.php

This file was deleted.

50 changes: 0 additions & 50 deletions Mar20/lamp/lamp.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions Mar20/notification_demo.yml

This file was deleted.

8 changes: 0 additions & 8 deletions Mar20/readme.txt.j2

This file was deleted.

5 changes: 0 additions & 5 deletions Mar20/reusabledemo/both.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions Mar20/reusabledemo/util.yml

This file was deleted.

17 changes: 0 additions & 17 deletions Mar20/reusabledemo/webserver.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions Mar20/role_demo/node_demo/node.yaml

This file was deleted.

Loading