diff --git a/playbooks/simple_playbook.yml b/playbooks/simple_playbook.yml new file mode 100644 index 0000000..822f553 --- /dev/null +++ b/playbooks/simple_playbook.yml @@ -0,0 +1,21 @@ +--- +- hosts: labservers + become: yes + tasks: + - name: install apache + yum: + name: httpd + state: latest + - name: start and enable httpd + service: + name: httpd + state: started + enabled: yes + - name: create index.html + file: + path: /var/www/html/index.html + state: touch + - name: add a linex to index.html + lineinfile: + path: /var/www/html/index.html + line: "Hello World" \ No newline at end of file