ansible-role-php | Ansible Role - PHP | Content Management System library
kandi X-RAY | ansible-role-php Summary
kandi X-RAY | ansible-role-php Summary
Ansible Role - PHP
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ansible-role-php
ansible-role-php Key Features
ansible-role-php Examples and Code Snippets
Community Discussions
Trending Discussions on ansible-role-php
QUESTION
I have the problem where my default values are normally stored in defaults/main.yml
for running ansible scripts but I have not found a way to override them. I am using molecule to test, and I want a method of passing in variables into my molecule/default/molecule.yml
or to molecule/default/playbook.yml
so that I can dynamically set phpVersion
.
- Here is where the variable is statically set with a default value
ANSWER
Answered 2020-Jan-26 at 11:23Edit: it might actually be possible to do better than below but I didn't get time to test it fully. Solution below is still valid. Choose the best one for you.
You can actually pass env vars to the molecule ansible provisionner from molecule.yml
(see doc which itself accepts env vars for templating with fallback to default values.
Here is the new idea. It is cleaner in the molecule playbook that solution below but needs two different env vars (one for the command line and the over one passed by molecule to the playbook).
In molecule.yml
QUESTION
I am writing my first ansible playbook and try to configure php 7 by using already existing roles. I found 2 roles that nearly suit my needs but both of them do not offer the flexibility I want for creating php.ini
files.
This role uses a task called php-fpm.yml
to change lines in a already existing php.ini
file using
ANSWER
Answered 2018-Jan-17 at 13:57You can make use of include_role in your implementation.
For example /roles/myphp/tasks/main.yml
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ansible-role-php
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page