softasap.sa-php-pharables
sa-php-pharables
帮助角色,通常与 sa-php-fpm 一起使用,包含预配置的 phar(如 composer 或 wp),也可以选择全局安装您需要的 phar。
使用示例:
简单版本
vars:
- my_phars:
- {
tool: "composer"
}
- {
tool: "wp"
}
- {
tool: "drush",
drush_version: "7.4.0"
}
roles:
- {
role: "sa-php-pharables",
phars: "{{ my_phars }}",
php_family: "7.0"
}
高级版本
请查看 box-example 以获取完整的 LAMP 安装示例。
vars:
- my_phars:
- {
tool: "composer"
}
- {
tool: "wp"
}
- {
tool: "custom",
phar: "wp-cli.phar",
url: "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar",
name: "wp-cli",
extra_phar_params: " --require=~/dictator/ "
}
- {
tool: "drush",
drush_version: "7.4.0"
}
roles:
- {
role: "sa-php-pharables",
phars: "{{ my_phars }}",
php_family: default # 5.6 | 7.0 | default
}
与 ansible galaxy 工作流程的使用
如果您使用以下命令安装了 sa-php-pharables
角色
ansible-galaxy install softasap.sa-php-pharables
此角色将可在文件夹 library/softasap.sa-php-pharables
中使用,请相应调整路径。
- {
role: "softasap.sa-php-pharables"
}
版权和许可
代码根据 BSD 3 条款 和 MIT 许可证 双重许可。选择最适合您的许可证。
联系我们:
订阅角色更新请访问 FB
加入 Gitter 讨论频道请访问 Gitter
在 http://www.softasap.com/roles/registry_generated.html 发现其他角色