2 minute Moodles: The story of my Ansible Addiction
HTML-код
- Опубликовано: 5 окт 2024
- I have a new addiction: Ansible.
Ansible automates workflows in Linux. When automated, an installation of Moodle to a server takes just over 2 minutes! In this video, I demonstrate installing a Moodle to an instance of Debian11 running in a Virtualbox VM.
NOTE: I'm still very much a newbie at Ansible, so please don't take this as professional advice. However, I would invite you to join me on this journey of learning about a new (well, new to me) way of doing things.
You can get my Ansible playbook and the template files from the following GitHub repository: github.com/ada...
Ansible documentation: docs.ansible.com
01:30 Opening up my Virtualbox instance of Debian11
04:00 Getting the Ansible Playbook files
05:15 Setting up the Ansible inventory file and preparing a DNS entry (well, /etc/hosts file)
08:00 Double-checking the SSH connection to the Debian11 Server
09:15 Trying (and failing) to run the playbook
10:00 Troubleshooting the Ansible Playbook file (with git commit and push)
12:30 Second attempt
12:48 2 minute Moodle installation START
15:20 2 minute Moodle installation FINISH (OK, so it actually took 2 mins + 32 seconds)
16:45 That moment I realized how cool "2 minute Moodles" sounds
19:30 A closer look at the tasks that Ansible did
22:45 Looking at the noomoodle.yaml file (Ansible playbook)
23:55 Looking at how a second Moodle might be added to the same server (forshadowing)
37:50 Running the Ansible playbook a second time to install a second Moodle (Using tags)
39:35 SSH-ing into the server to examine the results of the Ansible role (with a surprise in the crontab)
42:00 More reasons why I think Ansible is super awesome
Awseome! I timed it and it took 2 minutes and 32.12 seconds! This was just for the server setup and Moodle install, not the Moodle setup.
Yeah the Moodle setup (db tables) would take a bit longer, and I also cheated a bit by having the server OS already installed before starting the clock.
How much closer to complete can I get I wonder...