Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lamp_simple/roles/web/tasks/copy_code.yml')
-rw-r--r--lamp_simple/roles/web/tasks/copy_code.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/lamp_simple/roles/web/tasks/copy_code.yml b/lamp_simple/roles/web/tasks/copy_code.yml
index 6677cab..71c8971 100644
--- a/lamp_simple/roles/web/tasks/copy_code.yml
+++ b/lamp_simple/roles/web/tasks/copy_code.yml
@@ -3,7 +3,11 @@
# the version control system.
- name: Copy the code from repository
- git: repo={{ repository }} dest=/var/www/html/
+ git:
+ repo: "{{ repository }}"
+ dest: /var/www/html/
- name: Creates the index.php file
- template: src=index.php.j2 dest=/var/www/html/index.php
+ template:
+ src: index.php.j2
+ dest: /var/www/html/index.php