Skip to content

Commit

Permalink
Add drush
Browse files Browse the repository at this point in the history
  • Loading branch information
marktheunissen committed Aug 22, 2012
1 parent 349e5cc commit 102e9b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 2 additions & 0 deletions common-tasks/mysql-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
##
# MySQL database setup, this does the equivalent of mysql_secure_installation.
#
# Distribution independent.
#
- name: Set the root password.
action: mysql_user user=root password=$mysql_root_password host=localhost
tags: common
Expand Down
2 changes: 1 addition & 1 deletion ubuntu-10.04-lamp-dev/run-local-all
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

# Script for running the play on the localhost, everything included.
ansible-playbook -c local --tags="common" ./setup.yml
ansible-playbook -c local --tags="common,drush" ./setup.yml
9 changes: 5 additions & 4 deletions ubuntu-10.04-lamp-dev/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
action: command a2ensite devserver
tags: common

##
# Drush install, a Drupal shell tool.
#
- include: ../common-tasks/ubuntu-drush.yml

##
# Restart services
#
Expand All @@ -81,7 +86,3 @@
- name: Restart MySQL
action: service name=mysql state=restarted
tags: common

- name: Restart vsftpd
action: service name=vsftpd state=restarted
tags: ftp
12 changes: 1 addition & 11 deletions ubuntu-12.04-lamp-dev/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,7 @@
##
# Drush install, a Drupal shell tool.
#
- name: PEAR for obtaining drush.
action: apt pkg=php-pear state=installed
tags: drush

- name: Setup PEAR channel for drush
action: command pear channel-discover pear.drush.org creates=/usr/share/php/.channels/pear.drush.org.reg
tags: drush

- name: Install drush for Drupal
action: command pear install drush/drush creates=/usr/bin/drush
tags: drush
- include: ../common-tasks/ubuntu-drush.yml

##
# node.js installation (latest stable instead of Ubuntu's out-of-date one)
Expand Down

0 comments on commit 102e9b7

Please sign in to comment.