Commit 6ec778d8 authored by nimrod's avatar nimrod
Browse files

- Added phpinfo test using Nginx role.

parent 86aa3824
Loading
Loading
Loading
Loading

.gitmodules

0 → 100644
+3 −0
Original line number Diff line number Diff line
[submodule "library/shore"]
	path = library/shore
	url = https://www.shore.co.il/git/ansible-modules
+0 −1
Original line number Diff line number Diff line
@@ -66,4 +66,3 @@ TODO
- Configure pool.
- Status page.
- Ping page.
- Test PHP script with Nginx.

shore @ 2efdc7b0

Original line number Diff line number Diff line
Subproject commit 2efdc7b0a7d963ca5f2d7887530776906b319486
+25 −0
Original line number Diff line number Diff line
@@ -10,4 +10,29 @@
- hosts: all
  strategy: free
  roles:
    - role: nginx
    - role: php-fpm
  post_tasks:
      - name: Install cURL
        package:
            name: curl
            state: present

      - name: Create html directory
        file:
            path: /var/www/html
            owner: root
            group: 0
            mode: 0o0755
            state: directory

      - name: Add phpinfo script
        copy:
            content: |
                <?php
                phpinfo()
                ?>
            dest: /var/www/html/phpinfo.php
            owner: root
            group: 0
            mode: 0o0644
+2 −0
Original line number Diff line number Diff line
@@ -3,3 +3,5 @@
  name: openbsd-bootstrap
- src: adarnimrod.debian-bootstrap
  name: debian-bootstrap
- src: adarnimrod.nginx
  name: nginx
Loading