Skip to content

Instantly share code, notes, and snippets.

@litwicki
Created June 30, 2016 19:14
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 litwicki/086e5ebfb6c75cab0137c97134d2075a to your computer and use it in GitHub Desktop.
Save litwicki/086e5ebfb6c75cab0137c97134d2075a to your computer and use it in GitHub Desktop.
Ansible Playbook
# vim:ft=ansible:
#
---
- name: install common software
apt:
name={{ item }}
state=present
with_items:
- apache2
- git
- imagemagick
- make
- mcrypt
- npm
- pkg-config
- name: install composer
shell: curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
creates=/usr/local/bin/composer
- name: enable php-mcrypt
command: php5enmod mcrypt
args:
creates: /etc/php5/cli/conf.d/20-mcrypt.ini
notify: restart apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment