Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: localhost
- user: root
- gather_facts: false
- tasks:
- - name: Clone Remote Repo to Server
- git: >
- repo=ssh://git@github.com/tinut89/project.git
- key_file=/root/.ssh/id_rsa.github
- dest=/var/project/
- - name: install apache2
- apt: name=apache2 update_cache=yes state=latest
- - name: enabled mod_rewrite
- apache2_module: name=rewrite state=present
- notify:
- - restart apache2
- - name: enabled mod_rewrite
- apache2_module: name=rewrite state=present
- notify:
- - restart apache2
- - name: install php
- apt: state=present name={{ item }}
- with_items:
- - php
- - php-mysql
- handlers:
- - name: restart apache2
- service: name=apache2 state=restarted
Add Comment
Please, Sign In to add comment