-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
31 lines (22 loc) · 930 Bytes
/
Copy pathplaybook.yml
File metadata and controls
31 lines (22 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- hosts: vm1
tasks:
- name: install the git
become: yes
apt: name=git update_cache=yes
- name: install the rar
become: yes
apt: name=rar update_cache=yes
- name: install the tree
become: yes
apt: name=tree update_cache=yes
- name: Creating directory
file: path=/home/ubuntu/ghouse state=directory
- name: Creating file inside the directory
file: path=/home/ubuntu/ghouse/madhav.txt state=touch
- name: Delete the file
file: path=/home/ubuntu/apache-tomcat-7.0.78.tar.gz state=absent
- name: Delete manoj folder
become: yes
file: path=/manoj state=absent
- name: change the permissions of the tomcat
file: path=/home/ubuntu/apache-tomcat-7.0.78 mode=0400