-
Notifications
You must be signed in to change notification settings - Fork 6
/
apache_yukleme.yml
42 lines (34 loc) · 1.17 KB
/
apache_yukleme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- hosts: all
become: true
tasks:
# Bu görevler, Debian & Ubuntu tabanlı sunucular içndir.
- name: Bu gorev, Ubuntu packet index'ini günceller.
apt:
update_cache: yes
when: ansible_distribution == "Ubuntu"
- name: Bu gorev, Ubuntu apache2 yuklememesini gerceklestirir.
apt:
name: apache2
state: latest
when: ansible_distribution == "Ubuntu"
- name: Bu gorev, Ubuntu apache icin php kutuphanesini yuklememesini gerceklestirir.
apt:
name: libapache2-mod-php
state: latest
when: ansible_distribution == "Ubuntu"
# Bu görevler, Redhat & Rocky tabanlı sunucular içndir.
- name: Bu gorev, Rocky Linux update index'ini günceller.
dnf:
update_cache: yes
when: ansible_distribution == "Rocky"
- name: Bu gorev, Rocky Web sunucu yuklememesini gerceklestirir.
dnf:
name: httpd
state: latest
when: ansible_distribution == "Rocky"
- name: Bu gorev, Rocky Linux'a apache icin php kutuphanesini yuklememesini gerceklestirir.
dnf:
name: php
state: latest
when: ansible_distribution == "Rocky"