alainvanhoof.alpine_nginx

Role Name

This role sets up a running nginx server and can also install either php5 or php7 using php-fpm.

Requirements

To use the "agent-less" Ansible on Alpine Linux, you need to have python, sudo, and iproute2 installed (use the apk command).

Role Variables

  • php5: not set
  • php7: not set

Dependencies

Example Playbook

To install nginx with an index.html page on port 80:

- hosts: dev-nginx-01
  become: true
  roles:
    - { role: alpine_nginx }

To install nginx with php5, along with an index.html and an index.php (that shows phpinfo) on port 80:

- hosts: dev-nginx-02
  become: true
  roles:
    - { role: alpine_nginx, php5: yes }

To install nginx with php7, along with an index.html and an index.php (that shows phpinfo) on port 80:

- hosts: dev-nginx-03
  become: true
  roles:
    - { role: alpine_nginx, php7: yes }

License

BSD

Author Information

Alain van Hoof : alain+ansible@lafeberhof.nl

Informazioni sul progetto

Nginx for Alpine Linux

Installa
ansible-galaxy install alainvanhoof.alpine_nginx
Licenza
Unknown
Download
171
Proprietario