softasap.sa-php-pharables
sa-php-pharables
Hilfsrolle, die normalerweise mit sa-php-fpm verwendet wird, optionale vorgefertigte Phar-Dateien wie Composer oder WP, auch die Möglichkeit, Phar-Dateien Ihrer Wahl global zu installieren.
Beispiel für die Verwendung:
Einfach
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"
}
Fortgeschritten
Siehe Box-Beispiel für die vollständige LAMP-Installation.
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
}
Verwendung mit Ansible Galaxy Workflow
Wenn Sie die Rolle sa-php-pharables
mit dem Befehl installiert haben
ansible-galaxy install softasap.sa-php-pharables
wird die Rolle im Ordner library/softasap.sa-php-pharables
verfügbar sein. Bitte passen Sie den Pfad entsprechend an.
- {
role: "softasap.sa-php-pharables"
}
Urheberrecht und Lizenz
Der Code ist dual lizenziert unter der [BSD 3-Klausel] (https://opensource.org/licenses/BSD-3-Clause) und der [MIT-Lizenz] (http://opensource.org/licenses/MIT). Wählen Sie die, die am besten zu Ihnen passt.
Kontaktieren Sie uns:
Abonnieren Sie die Rollenaktualisierungen auf [FB] (https://www.facebook.com/SoftAsap/)
Treten Sie dem Gitter-Diskussionskanal bei Gitter
Entdecken Sie andere Rollen unter http://www.softasap.com/roles/registry_generated.html
Besuchen Sie unseren Blog unter http://www.softasap.com/blog/archive.html
helper role for global php pchar installations
ansible-galaxy install softasap.sa-php-pharables