| A role that installs PHP on the target system.
PHP is needed for a lot of web-based applications, e.g. Nextcloud, WordPress.
Install from Ansible Galaxy
ansible-galaxy install while_true_do.php
Install from Github
git clone https://github.com/while-true-do/ansible-role-php.git while_true_do.php
Used Modules:
This role depends on while_true_do.repo_webtatic. You have to install the role:
ansible-galaxy install -r requirements.yml
# defaults/main.yml
wtd_php_fpm_enable: false
wtd_php_fpm_user: "apache"
wtd_php_fpm_group: "apache"
wtd_php_fpm_listen: "127.0.0.1:9000"
wtd_php_fpm_env_hostname: "$HOSTNAME"
wtd_php_fpm_env_path: "/usr/local/bin:/usr/bin:/bin"
wtd_php_fpm_env_tmp: "/tmp"
wtd_php_fpm_env_tmpdir: "/tmp"
wtd_php_fpm_env_temp: "/tmp"
wtd_php_fpm_service: "php-fpm"
wtd_php_repository: "default"
# vars/CentOS.yml
__wtd_php_packages:
- php
__wtd_php_fpm_packages:
- php-fpm
__wtd_php_packages_webtatic:
- php71w-common
- php71w-cli
__wtd_php_fpm_packages_webtatic:
- php71w-fpm
Simple Example:
- hosts: servers
roles:
- { role: while_true_do.php }
Advanced Example:
- hosts: servers
roles:
- { role: while_true_do.php, wtd_php_fpm_enable: true, wtd_php_repository: "webtatic" }
All tests are located in test directory.
Basic testing:
bash ./tests/test-spelling.sh
bash ./tests/test-ansible.sh
Thank you so much for considering to contribute. Every contribution helps us. We are really happy, when somebody is joining the hard work. Please have a look at the links first.
This work is licensed under a BSD License.
Blog: blog.while-true-do.org
Mail: [email protected]