Trying to run Vagrant provision after making the ansible-playbook.yml file chapter one

Author: jgfeller24Created Jun 6, 2025Updated Jan 10, 2026

I am working through the Jeff geerling "ansible for dev ops book. I have created a RHEL9 VM in virtual box and use am using vagrant.

When I run the vagrant provision command it errors out with the following:

PS C:\Vagrant> vagrant provision ==> default: Running provisioner: ansible... Windows is not officially supported for the Ansible Control Machine. Please check https://docs.ansible.com/intro_installation.html#control-machine-requirements Vagrant gathered an unknown Ansible version:

and falls back on the compatibility mode '1.8'.

Alternatively, the compatibility mode can be specified in your Vagrantfile: https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode default: Running ansible-playbook... The Ansible software could not be found! Please verify that Ansible is correctly installed on your host system.

If you haven't installed Ansible yet, please install Ansible on your host system. Vagrant can't do this for you in a safe and automated way. Please check https://docs.ansible.com for more information.

I added the lines below to the end of my vagrantfile on my windows 11 device:

Provisioning configuration for Ansible.

config.vm.provision "ansible" do |ansible| ansible.playbook = "playbook.yml" end end

I also created the playbook.yml file below:


  • hosts: all become: yes

    tasks:

    • name: Ensure chrony (for time synchronization) is installed. dnf: name: chrony state: present

    • name: Ensure chrony is running. service: name: chronyd state: started enabled: yes

I installed ansible on my RHEL9 machine using python3 - m pip install --user ansible

I am new to Ansible and any help would be appreciated.

Am I missing something?

Thank you!!

Source: geerlingguy/ansible-for-devops