diff --git a/ansible/main.yml b/ansible/main.yml index b932d3893c0ab7d733fba01b39c874eb280dc700..cfd7c91b21127bb98d7f63b02108ad4e3263d1ad 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -2,9 +2,6 @@ - hosts: all gather_facts: no become: yes - vars: - ansible_ssh_private_key_file: "{{instance_server_public_key}}" - ansible_ssh_user: "ubuntu" tasks: - name: Update repositories apt: @@ -27,7 +24,7 @@ - name: Install sample site copy: - dest: "" + dest: "{{ item }}" content: | <!doctype html> <html lang="en"> @@ -41,4 +38,4 @@ </html> with_items: - /var/www/html/index.html - - /usr/share/nginx/html/index.html \ No newline at end of file + - /usr/share/nginx/html/index.html