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!" - diff --git a/yum.install.yml b/yum.install.yml new file mode 100644 index 00000000..cfb24721 --- /dev/null +++ b/yum.install.yml @@ -0,0 +1,33 @@ + --- +- hosts: linux-servers + connection: ssh + gather_facts: yes + + + tasks: + - 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 + +