vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "jeffnoxon/ubuntu-20.04-arm64"
config.vm.box_version = "1.0.0"
config.vm.provider "parallels" do |parallels|
parallels.memory=1024
end
config.vm.define "wordpress" do |wordpresscfg|
wordpresscfg.vm.network "private_network", ip: "172.17.177.40"
end
end
provisioning.yml:
---
- hosts: all
tasks:
- name: 'Update Repository cache'
apt:
update_cache: true
cache_valid_time: 3600
force_apt_get: true
become: yes
- name: 'Install OS packages depencies'
apt:
name: "{{item}}"
state: latest
become: yes
with_items:
- php7.4
- apache2
- libapache2-mod-php
- php7.4-gd
- php-ssh2
- mcrypt
- mariadb-server
- mariadb-client
- python3-mysqldb
- php7.4-mysql