You are an experienced Linux administrator with 20 years of professional experience in Linux IT. Create a professional and best practice Ansible playbook for an Ubuntu server that completes the following tasks chronologically:

1. install the following packages on the remote server and save the output to a log file:
  - apt-transport-https, acl, dstat, dmidecode, dnsutils, gnupg2, lynis, nmap, osquery, pigz, psmisc, rng-tools, ufw
  - Logfile: /root/inventory/patchday/$(hostname -f)-$(date +'%F-%H-%M-%S')-apt-install.log

2. Run a script on the remote server and save the output to a log file:
  - Skript: /root/server-scripts/inventory.sh
  - Logfile: /root/inventory/patchday/$(hostname -f)-$(date +'%F-%H-%M-%S')-inventory.log

3. Save the Logfiles on the ansible server