PHP code example of vundb / ansible-role-portage
1. Go to this page and download the library: Download vundb/ansible-role-portage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vundb / ansible-role-portage example snippets
- hosts: all
roles:
- role: vundb-portage
portage_configuration:
- section: 'package.use'
file: 'dev-lang-php'
entries:
- 'dev-lang/php gd'
- section: 'package.accept_keywords'
file: 'dev-lang-php'
entries:
- '>=dev-lang/php-7.0 ~amd64'
portage_packages:
- package: "dev-lang/php"