Skip to content

Commit

Permalink
Merge branch 'master' into CD-339
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohan Yadav authored Jul 14, 2021
2 parents fa627ae + e5409b4 commit 9045613
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 26 deletions.
61 changes: 40 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. -->


<p align="center"> <img src="https://user-images.githubusercontent.com/50652676/62451340-ba925480-b78b-11e9-99f0-13a8a9cc0afa.png" width="100" height="100"></p>

<h1 align="center">
Ansible Role Docker PHP
</h1>

<p align="center" style="font-size: 1.2rem;">
This ansible role is used to install PHP with docker on linux.
<p align="center" style="font-size: 1.2rem;">
This Ansible role install PHP On Ubuntu, CentOS Amazon-Linux With Docker.
</p>

<p align="center">
Expand All @@ -18,14 +19,11 @@
<a href="LICENSE.md">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="Licence">
</a>
<a href="https://ubuntu.com/">
<img src="https://img.shields.io/badge/ubuntu-18.x-orange?style=flat&logo=ubuntu" alt="Distribution">
</a>
<a href="https://ubuntu.com/">
<img src="https://img.shields.io/badge/ubuntu-20.x-orange?style=flat&logo=ubuntu" alt="Distribution">
</a>
<a href="https://www.centos.org/">
<img src="https://img.shields.io/badge/centos-8.x-orange" alt="Distribution">
<img src="https://img.shields.io/badge/CentOS-8-green?style=flat&logo=centos" alt="Distribution">
</a>
<a href="https://aws.amazon.com/amazon-linux-ami/">
<img src="https://img.shields.io/badge/Amazon_linux-2-yellow?style=flat&logo=linux" alt="Distribution">
Expand All @@ -34,6 +32,7 @@
<img src="https://github.com/clouddrove/ansible-role-docker-php/actions/workflows/lint.yml/badge.svg" alt="Actions">
</a>


</p>
<p align="center">

Expand All @@ -50,56 +49,76 @@
</p>
<hr>

We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.


We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.

Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in [ansible-playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to achieve the desired yet consistent results.



## Prerequisites

This module has a few dependencies:
This module has a few dependencies:

- [Ansible2.9](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- [Python](https://www.python.org/downloads)
- [Docker](https://docs.docker.com/install/linux/docker-ce/ubuntu)




## What Includes

Followiing things includes in this role:
Following things includes in this role:

- Php-8.0
- Php-fpm
- Pecl
- Composer







## Example Playbook

**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/ansible-role-docker-php/releases).


```yaml
- hosts: localhost
remote_user: root
roles:
- clouddrove.ansible_role_docker_php
```
## Variables
```yaml
php_version: 8.0.7-fpm
php_user: www-data
php_group: www-data
php_opt_dir: "/opt/php"
php_config_dir: "{{ php_opt_dir }}/config"
php_version: 8.0.7-fpm
php_user: www-data
php_group: www-data
php_opt_dir: "/opt/php"
php_config_dir: "{{ php_opt_dir }}/config"
```
## Installation
```console
$ ansible-galaxy install clouddrove.ansible_role_docker_php
```

## Feedback





## Feedback
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/ansible-role-docker-php/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).

If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/ansible-role-docker-php)!
Expand All @@ -112,9 +131,9 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s
<hr />
<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p>

[website]: https://clouddrove.com
[github]: https://github.com/clouddrove
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
[website]: https://clouddrove.com
[github]: https://github.com/clouddrove
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
2 changes: 1 addition & 1 deletion README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ what_includes:

# description of this project
description: |-
This ansible role is used to install PHP with docker on linux.
This Ansible role install PHP On Ubuntu, CentOS Amazon-Linux With Docker.
# How to use this project
usage: |-
Expand Down
9 changes: 5 additions & 4 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ dependencies: []

galaxy_info:
author: Anmol Nagpal
description: This ansible role installs PHP on Docker.
description: This Ansible role install PHP On Ubuntu, CentOS Amazon-Linux With Docker
company: "CloudDrove Inc."
license: "license (BSD, MIT)"
role_name: ansible_role_docker_php
namespace: clouddrove
min_ansible_version: 2.4
namespace: CloudDrove
min_ansible_version: 2.8

platforms:
- name: Debian
versions:
Expand Down Expand Up @@ -38,4 +39,4 @@ galaxy_info:
- ubuntu
- cenos
- linux
- amazonlinux
- amazon

0 comments on commit 9045613

Please sign in to comment.