-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpalybook1.yml
More file actions
41 lines (33 loc) · 1.15 KB
/
Copy pathpalybook1.yml
File metadata and controls
41 lines (33 loc) · 1.15 KB
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
32
33
34
35
36
37
38
39
40
41
- hosts: group1
tasks:
- name: list of all files
shell: "ls >> file1.txt"
args:
chdir: /home/{{user}}
- name: uninstall the git
become: yes
apt: name={{item}} update_cache=no state=absent
with_items:
- git
- rar
- tree
- name: change the permissions the file
become: yes
file: path=/home/{{user}}/ghouse/madhav.txt owner=root group=root mode=0774
- name: install the python
become: yes
apt: name=python update_cache=yes
- name: Create the folder
become: yes
file: path=/tomcat state=directory
- name: install tomcat
become: yes
get_url: url="http://mirror.fibergrid.in/apache/tomcat/tomcat-7/v7.0.78/bin/apache-tomcat-7.0.78.tar.gz" dest=/tomcat mode=0777
- name: create group
become: yes
group: name=manoj
tags: run
- name: create user
become: yes
user: name=manoj
tags: run