Category : ansible

I have a shared Windows drive where a few files are kept. I have ansible running on Linux which need to connect to the Windows server and download those files. As per the organization policy WINRM is not allowed and the suggestion of using Windows Management Instrumentation (WMI) to connect from Linux ansible to Windows ..

Read more

I am having powershell script ex1.ps1 which takes user inputs and ex1.ps1 have commands to open new powershell to execute APPLICATION.exe file (Start-Process -FilePath "$PSHOMEpowershell.exe" -ArgumentList "-command C:APPLICATION1.exe).Iwant to execute ex1.ps1 on remote host,I am trying to call ex1.ps1 using Ansibe-playbook as #ansible-playbook script name: Run basic PowerShell script win_powershell: script: | powershell.exe -ExecutionPolicy ByPass ..

Read more

I would like to rename a Windows Host by mac address. I have a csv file with MAC;HOSTNAME. I am at the step to get the macaddress of the connection named "Ethernet". when i do ansible -m setup […] i get the following: "ansible_interfaces": [ { "connection_name": "Ethernet", "default_gateway": "192.168.92.1", "dns_domain": null, "interface_index": 12, "interface_name": ..

Read more

I am using ansible for windows . The reboot playbook code noted below is getting executed in one set of machines but not in another set of boxes. — – gather_facts: true hosts: SoftwareUpgrade tasks: – win_updates: category_names: – CriticalUpdates – SecurityUpdates reboot: no – win_reboot: msg: "Reboot initiated by Ansible" reboot_timeout: 7200 post_reboot_delay: 600 ..

Read more

I am using ansible for windows. The reboot playbook code noted below is getting executed in one set of machines but not in another set of boxes. — – gather_facts: true hosts: SoftwareUpgrade tasks: – win_updates: category_names: – CriticalUpdates – SecurityUpdates reboot: no – win_reboot: msg: "Reboot initiated by Ansible" reboot_timeout: 7200 post_reboot_delay: 600 test_command: ..

Read more