summaryrefslogtreecommitdiff
path: root/lamp-stack-playbook.yml
blob: 15b93af5e777f241222d68458b3d636bcabc1c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: Set up LAMP Stack on all servers
  hosts: all
  remote_user: root
  tasks:
    - name: Install Apache, MariaDB, PHP8.4
      ansible.builtin.apt: 
        update_cache: yes
        pkg:
          - apache2
          - mariadb-server
          - php8.4
    - name: Move Apache Config File
      ansible.builtin.copy:
        src: files/website_apache.conf
        dest: /etc/apache2/sites-available/website_apache.conf
        owner: root
        group: root
        mode: '0644'
# apache2 mariadb-server php8.4