Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save izmilia-prastika/3be95360bbda913f0db8cd4607aec600 to your computer and use it in GitHub Desktop.
Save izmilia-prastika/3be95360bbda913f0db8cd4607aec600 to your computer and use it in GitHub Desktop.
contoh konfigurasi untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP dengan Ansible
- name: Update the apt-get cache
apt:
update_cache: yes
- name: Install PHP
apt:
name: php
- name: Install Apache
apt:
name: apache2
- name: Copy the code from the repository
git: repo=https://github.com/brikis98/php-app.git dest=/var/www/html/app
- name: Start Apache
service: name=apache2 state=started enabled=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment