I have a site alias @foo for a remote site accessed over ssh. This works as expected:

drush @foo exec ls

I also have a site alias @bar for another remote site, and a site alias that groups them both together:

// Group alias.
$aliases['both'] = array(
  'site-list' => array('@foo', '@bar'),
);

However, trying to exec a command on both sites with this doesn't work:

drush @both exec ls

This appears to just run the ls command locally.

Comments

joachim’s picture

Using debug with a group alias:

Calling proc_open(ls);

and with a single alias:

Calling proc_open(ssh -o PasswordAuthentication=no foo@foo 'cd /home/foo/www && ls');
greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.

joachim’s picture

Status: Closed (won't fix) » Closed (duplicate)