Guest User

Untitled

a guest
Nov 27th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. ---
  2. - hosts: localhost
  3. user: root
  4. gather_facts: false
  5. tasks:
  6. - name: Clone Remote Repo to Server
  7. git: >
  8. repo=ssh://git@github.com/tinut89/project.git
  9. key_file=/root/.ssh/id_rsa.github
  10. dest=/var/project/
  11. - name: install apache2
  12. apt: name=apache2 update_cache=yes state=latest
  13.  
  14. - name: enabled mod_rewrite
  15. apache2_module: name=rewrite state=present
  16. notify:
  17. - restart apache2
  18.  
  19. - name: enabled mod_rewrite
  20. apache2_module: name=rewrite state=present
  21. notify:
  22. - restart apache2
  23.  
  24. - name: install php
  25. apt: state=present name={{ item }}
  26. with_items:
  27. - php
  28. - php-mysql
  29.  
  30. handlers:
  31. - name: restart apache2
  32. service: name=apache2 state=restarted
Add Comment
Please, Sign In to add comment