error in ansible is: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Group az_devops_agent does not exist"}
vagrant file below:
vagrant file
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"
config.vm.provider "hyper-v"
config.vm.provision "shell",
inline: "echo installing apps..."
config.vm.provision :shell, path: "./ansible.sh"
config.vm.provider "hyperv" do |h, override|
# Display the VirtualBox GUI when booting the machine
h.cpus = 2
h.maxmemory = 2048
# Customize the amount of memory on the VM:
h.memory = 2048
end
end
./ansible.sh file stored in same folder as vagrantfile
Trying to get this working using ubuntu 20.04 vm:
error in ansible is: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Group az_devops_agent does not exist"}
vagrant file below:
vagrant file
./ansible.sh file stored in same folder as vagrantfile
shell commands used to replicate the issue... using local ansible exec
error message
help is appreciated!