Ansible, Automate, WordPress, Lamp Stack, Ansible Playbook.
tasks/ubuntu-tasks.yml. You would then use include_tasks in your main playbook to include the appropriate task file based on the target host’s operating system. A “when” condition is used to include the appropriate task file based on the value of ansible_os_family fact, which contains the target