Category : ansible

Good day, I am trying to deploy the app to the Windows server from redhat. Actually it was successfully running for several weeks but Since Yesterday morning I am facing this strange issue after running the playbook. Error: ansible-playbook 2.9.17 config file = /root/myteam/stephen/Ansible/DeployApp/ansible.cfg configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’] ansible python module location ..

Read more

I have Ansible running on Linux Mint on an Oracle VM. I am following this tutorial: https://www.ansible.com/blog/connecting-to-a-windows-host to test communication with my host OS, Windows 10. Bridged networking is set up. I have done the following steps: install Ansible on the Linux VM install Python 3.9 on Windows set up WinRM on Windows configure hosts ..

Read more

I am trying to install windows updates with Ansible but I get a strange error. Code: – name: Install all security, critical, and rollup updates win_updates: category_names: – SecurityUpdates – CriticalUpdates – UpdateRollups reboot: yes reboot_timeout: 500 log_path: c:tempansible_wu.txt Error: The connection from Ansible to the server works fine. The update is ready to be ..

Read more

We are using ansible win_file module to delete a particular folder in a Windows Server machine with the following code: – name: Delete <folderName> directory win_file: path=C:<pathToFolder>{{target_environment}}<folderName> state=absent tags: <folderName> The problem: When a file from that directory is open in another program at the same time the ansible role runs, it fails saying: "The ..

Read more

I have created a Windows server 2019 Vagrant box using https://github.com/rgl/windows-vagrant. I did not make any changes. Steps to reproduce: git clone [email protected]:rgl/windows-vagrant.git cd windows-vagrant make build-windows-2019-virtualbox Then I added the new box with vagrant box add -f windows-2019-amd64 windows-2019-amd64-virtualbox.box Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "windows-2019-amd64" config.vm.provision :ansible do |ansible| ansible.playbook = "./provisioners/ansible/ansible_playbook.yml" ansible.config_file ..

Read more

I am seeing this error while eshtablishing connection to windows host from Ansible master. Not sure what’s causing the issue. Max retries exceeded with url: /wsman (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f7d439470>: Failed to establish a new connection: [Errno 110] Connection timed out’,))", "unreachable": true } Source: Windows..

Read more