From bac9c96e66de1e4b428123dc7c77a4d462e88649 Mon Sep 17 00:00:00 2001 From: NatheeshMG <40658484+NatheeshMG@users.noreply.github.com> Date: Thu, 28 Jun 2018 06:01:46 -0500 Subject: [PATCH 1/5] Create install-vim --- install-vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 install-vim diff --git a/install-vim b/install-vim new file mode 100644 index 00000000..6495a24e --- /dev/null +++ b/install-vim @@ -0,0 +1,8 @@ +--- +- hosts: project-1 + connection: ssh + gather_facts: yes + + tasks: + - name: install vim + yum: pkg=vim state=removed update_cache=true From 8fba987243b4b0379d28051106a420a619a94787 Mon Sep 17 00:00:00 2001 From: NatheeshMG <40658484+NatheeshMG@users.noreply.github.com> Date: Thu, 28 Jun 2018 08:23:42 -0500 Subject: [PATCH 2/5] Update install-vim --- install-vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-vim b/install-vim index 6495a24e..bacfa0c6 100644 --- a/install-vim +++ b/install-vim @@ -4,5 +4,5 @@ gather_facts: yes tasks: - - name: install vim - yum: pkg=vim state=removed update_cache=true + - name: install sysstat + yum: pkg=vim state=installed update_cache=true From 65a4def290f1bbf643b4c52ad3b1a09915e812d9 Mon Sep 17 00:00:00 2001 From: NatheeshMG <40658484+NatheeshMG@users.noreply.github.com> Date: Mon, 9 Jul 2018 05:20:25 -0500 Subject: [PATCH 3/5] Update install-vim --- install-vim | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/install-vim b/install-vim index bacfa0c6..cfb24721 100644 --- a/install-vim +++ b/install-vim @@ -1,8 +1,33 @@ ---- -- hosts: project-1 + --- +- hosts: linux-servers connection: ssh gather_facts: yes - + + tasks: - - name: install sysstat - yum: pkg=vim state=installed update_cache=true + - name : creating a directory + file: + path: /tmp/backups + state: directory + mode: "u=rw,g=rx,o=rx" + + + - name: creating multiple directories + file: + path: "{{item}}" + state: directory + with_items: + - '/tmp/devops1' + - '/tmp/devops2' + - '/tmp/devops3' + - '/home/devops3' + + + - name: creating file + file: + path: "/tmp/devops2/devops2.txt" + state: touch + mode: 777 + owner: ansi + + From ec43b0de8ad2eed7838818a35ab9c52366c97c5c Mon Sep 17 00:00:00 2001 From: NatheeshMG <40658484+NatheeshMG@users.noreply.github.com> Date: Mon, 9 Jul 2018 05:24:53 -0500 Subject: [PATCH 4/5] Delete hello_world.yml --- hello_world.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 hello_world.yml diff --git a/hello_world.yml b/hello_world.yml deleted file mode 100644 index 20632c61..00000000 --- a/hello_world.yml +++ /dev/null @@ -1,7 +0,0 @@ -- name: Hello World Sample - hosts: all - tasks: - - name: Hello Message - debug: - msg: "Hello World!" - From a558281f0768bb30c1c556a40d31bc66e4335ff8 Mon Sep 17 00:00:00 2001 From: NatheeshMG <40658484+NatheeshMG@users.noreply.github.com> Date: Mon, 9 Jul 2018 05:25:31 -0500 Subject: [PATCH 5/5] Rename install-vim to yum.install.yml --- install-vim => yum.install.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename install-vim => yum.install.yml (100%) diff --git a/install-vim b/yum.install.yml similarity index 100% rename from install-vim rename to yum.install.yml