We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ebd4f commit 7f2c64dCopy full SHA for 7f2c64d
ansible/roles/tomcat/tasks/main.yml
@@ -1,16 +1,24 @@
1
-- name: copy
+- name: create a file
2
file:
3
- path: /tmp/testfile
4
- state: touch
+ path: /tmp/newtoday.txt
+ state: touch
5
6
-- name: configure
+- name: config users
7
include_tasks: configure-user.yml
8
+ when: action == "install"
9
-- name: Install Java
10
+- name: install java
11
include_tasks: install-java.yml
12
13
+
14
+- name: install tomcat
15
+ include_tasks: install-tomcat.yml
16
17
18
+- name: uninstall tomcat
19
+ include_tasks: uninstall-tomcat.yml
20
+ when: action == "uninstall"
21
-- name: Install Tomcat
- include_tasks: install-tomcat.yml
22
23
- name: understand defaults dir
24
debug:
0 commit comments