I am currently working on replacing my setup PS scripts with Ansible playbooks for Windows server setup. There is a module community.windows.win_firewall_rule that allows you to edit, create and delete Windows firewall rules. Creating new rules and editing existing ones works fine. What I can’t do is delete existing (built-in) rules, e.g. "Xbox Game UI" ..
I’m using ansible 2.9.27 version, installed pywinrm, requests modules already with below version: pywinrm 0.4.2 requests 2.27.1 requests-ntlm 1.1.0 I’m trying win_ping from ansible control node but it is failing. For the same windows host, we are able to authenticate from different ansible control node. — – name: Tets hosts: 172.17.92.69 vars: ansible_user: [email protected] ansible_password: ..
I am running my ansible on an AWS EC2 linux machine which connects to another AWS EC2 Windows machine to copy a file to S3 bucket my tasks/main.yml file looks like below — # tasks file for postgres – name: Copy a single file win_copy: src: "test-script.sql" dest: "C:omnistore-selenium/pg_scripts.sql" – name: Simple PUT operation amazon.aws.aws_s3: ..
I am trying to bind a certificate to a Microsoft App ID on a specific port and IP. I got no problem with the port and IP but struggling to understand how to assign the binding with an app id. I am looking to use ‘community windows win iis webbinding’ module in order to accomplish ..
I’m creating playbook to install fluentbit on windows hosts. Everything is working properly but i’m getting error when creating service, it doesn’t fail the install as then everything is already in place but I would like to figure out how I could leverage conditionals. Could you help me with this? 🙂 My adhoc test-play where ..
I´ve configure this om my client and used Ansible for window10 with wsl: [web] server01 [web:vars] ansible_user="[email protected]" ansible_password=somepassword ansible_connection=winrm ansible_winrm_transport=credssp ansible_winrm_cert_validation=ignore And done this on target server01 – see screenshot CreddSSP on Target server01 I´ve added svc-ansible account to local administrator group on server01 But when Im trying ansible web -m win_ping from client i ..
After tried many ways to run a script in a windows pc with Ansible, couldn’t make it work. Does someone know what can I do to succeed? Here’s what I have: — Linux Ubuntu submodule running on Windows with Ansible installed — Ansible host file with the content: [uwp] 220.127.116.11 18.104.22.168 [uwp:vars] ansible_user=user ansible_password=********** ansible_connection=winrm ..
I created a Windows server on Azure. After making the necessary adjustments in the Ansible document, I tried to connect from my MacOS computer. but I am getting time out error. I’m sure my ansible configurations are correct, could this be an issue with azure VMs? Source: Windows..
We have installed ansible.windows and are configuring a Web Application in IIS and do not seem to be able to set the Enabled Protocols. It always uses the default of http and we are specifying net.tcp. We have tried a few variations but none seems to work. behavior.enabled_Protocols: net.tcp enabled_protocols: net.tcp protocols: net.tcp behavior_enabled_Protocols: net.tcp ..
For some time I cannot successfully execute ansible playbook on a Windows host with OpenSSH on it. The playbook is very simple: — – name: test play hosts: all gather_facts: no tasks: – name: check if is working debug: msg=’Start execution’ – name: check file win_stat: path: C:nonexistingfile register: out – debug: var=out The inventory: ..