Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Last active January 10, 2019 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shudarshon/84c8bf2c8246a9abab59ff9bda4e5b6e to your computer and use it in GitHub Desktop.
Save shudarshon/84c8bf2c8246a9abab59ff9bda4e5b6e to your computer and use it in GitHub Desktop.
test_file_ansible
---
- name: Installing PHP packages
apt: update_cache=yes state=latest name={{ item }} state=latest
with_items:
- php5
- php5-fpm
- php5-mysql
- php5-curl
- php5-mcrypt
- php5-gd
- php5-cli
- name: ensure php5-fpm cgi.fix_pathinfo=0
lineinfile: dest=/etc/php5/fpm/php.ini regexp='^(.*)cgi.fix_pathinfo=' line=cgi.fix_pathinfo=0
notify:
- php-fpm restart
- nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment