Created
November 18, 2023 09:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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