Skip to content

Commit 7f2c64d

Browse files
author
lerndevops
authored
Update main.yml
1 parent 05ebd4f commit 7f2c64d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

ansible/roles/tomcat/tasks/main.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1-
- name: copy
1+
- name: create a file
22
file:
3-
path: /tmp/testfile
4-
state: touch
3+
path: /tmp/newtoday.txt
4+
state: touch
55

6-
- name: configure
6+
- name: config users
77
include_tasks: configure-user.yml
8+
when: action == "install"
89

9-
- name: Install Java
10+
- name: install java
1011
include_tasks: install-java.yml
12+
when: action == "install"
13+
14+
- name: install tomcat
15+
include_tasks: install-tomcat.yml
16+
when: action == "install"
17+
18+
- name: uninstall tomcat
19+
include_tasks: uninstall-tomcat.yml
20+
when: action == "uninstall"
1121

12-
- name: Install Tomcat
13-
include_tasks: install-tomcat.yml
1422

1523
- name: understand defaults dir
1624
debug:

0 commit comments

Comments
 (0)