diff --git a/Section2/playbooks/install_Apache.yaml b/Section2/playbooks/install_Apache.yaml index e7f8599f349425a08686faf6725bb5c6692ccbb1..2932ae6e86a48d013e4756b936e0456a228ce8ff 100644 --- a/Section2/playbooks/install_Apache.yaml +++ b/Section2/playbooks/install_Apache.yaml @@ -1,10 +1,10 @@ --- - name: Install Apache2 on all webservers hosts: webservers - sudo: yes # Must be root + sudo: yes # Must be root tasks: - name: Install Apache - apt: pkg=apache2 state=latest # httpd if using yum + apt: pkg=apache2 state=latest # httpd if using yum - name: Generate config file copy: src=httpd.conf dest=/etc/httpd.conf - name: Restart Apache diff --git a/Section2/playbooks/install_Apache_with_handlers.yaml b/Section2/playbooks/install_Apache_with_handlers.yaml index bae9e5b3fd2371b2d84250368c90cd9debb07664..f9c977b2338588dcb748cbebcdbad52b02148a01 100644 --- a/Section2/playbooks/install_Apache_with_handlers.yaml +++ b/Section2/playbooks/install_Apache_with_handlers.yaml @@ -1,7 +1,7 @@ --- - name: Install mod_rewrite on all webservers hosts: webservers - sudo: yes # Gotta be root + sudo: yes # Got to be root tasks: - name: Install Apache apt: pkg=apache2 state=latest diff --git a/Section2/playbooks/playbook_with_Jinja2.yaml b/Section2/playbooks/playbook_with_Jinja2.yaml index cc5ec3ad1a41a03b42764d482e4318b84511c8d8..c26c509164a84e4c3f3da7cc8d1f7092fb1bef25 100644 --- a/Section2/playbooks/playbook_with_Jinja2.yaml +++ b/Section2/playbooks/playbook_with_Jinja2.yaml @@ -1,14 +1,14 @@ --- - name: Copy the relevant files to the target vars: - source_file: foo.conf - destination_directory: /etc/foo + source_file: foo.conf + destination_directory: /etc/foo tasks: - name: "copy foo.conf to server" copy: - src: {{ source_file }} - dest: {{ destination_directory }} - owner: foo - group: foo - mode: ‘0644’ - backup: yes + src: {{ source_file }} + dest: {{ destination_directory }} + owner: foo + group: foo + mode: ‘0644’ + backup: yes diff --git a/Section2/playbooks/simple_example_playbook.yaml b/Section2/playbooks/simple_example_playbook.yaml index c4af8631a271e71f7cf087385354e76850299f87..6c04a1dd3f32d4ffa9171e451cb936071e8b536e 100644 --- a/Section2/playbooks/simple_example_playbook.yaml +++ b/Section2/playbooks/simple_example_playbook.yaml @@ -6,11 +6,11 @@ # If you do it anyway, you will get this error: # "ERROR! no module/action detected in task." -- name: Set up Apache # Or nginx, or Mongoose +- name: Set up Apache # Or nginx, or Mongoose hosts: webservers tasks: - name: install Apache - name: generate Apache config file - name: download Web content to relevant directory - name: restart Apache - - name: eat cake \ No newline at end of file + - name: eat cake diff --git a/Section2/playbooks/variable_files.yaml b/Section2/playbooks/variable_files.yaml index 4dff49aefd62768490166f859a3c0467c5908c0c..64c0c66c7fc7b5ab6a8ec1e2621e76beb9b50259 100644 --- a/Section2/playbooks/variable_files.yaml +++ b/Section2/playbooks/variable_files.yaml @@ -2,7 +2,7 @@ - name: Set up Apache hosts: webservers vars: - http_port: 80 + http_port: 80 - name: Set up Apache hosts: webservers