Created
July 16, 2013 22:52
-
-
Save rei999/6015937 to your computer and use it in GitHub Desktop.
ansible - install php, mysql, nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: configure instances | |
| hosts: webservers | |
| user: ec2-user | |
| sudo: yes | |
| tasks: | |
| - name: update machine with latest packages | |
| action: command yum -y update | |
| - name: install php | |
| action: yum pkg=php state=latest | |
| - name: install php-mysql | |
| action: yum pkg=php-mysql state=latest | |
| - name: install nginx | |
| action: yum pkg=nginx state=latest | |
| - name: ensure nginx is running | |
| action: service name=nginx state=started | |
| - name: install mysql server | |
| action: yum pkg=mysql-server state=latest | |
| - name: make sure mysql is running | |
| action: service name=mysqld state=started |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment