Re: [ansible-project] wild card is not working for adapter_names in win_dns_client

2020-08-12 Thread 'J Hawkesworth' via Ansible Project
You proably need to fetch the adaptor name which you can do with Get-NetAdapter powershell command https://docs.microsoft.com/en-us/powershell/module/netadapter/get-netadapter?view=win10-ps then pass that to the module parameters. On Wednesday, August 12, 2020 at 11:39:57 AM UTC+1, Prakash PMS

[ansible-project] Re: unable to install .exe files using win package module on a windows sever

2020-08-12 Thread 'J Hawkesworth' via Ansible Project
Lots of things could be going wrong here. What error do you get? Is there anything in windows event log? Change arguments and get the installer to write to a log file and look in that for problems. Does installer need administrator privilege? May be you need to run using become runas - see

[ansible-project] Re: pinging both Windows and Linux hosts

2020-08-04 Thread 'J Hawkesworth' via Ansible Project
Rather than ping/win_ping you can use the cross-platform wait_for_connection module https://docs.ansible.com/ansible/latest/modules/wait_for_connection_module.html ansible all -m wait_for_connection Hope this helps Jon On Friday, July 31, 2020 at 6:04:09 AM UTC+1, Ed Wong wrote: > > I

[ansible-project] Re: Jinja2 Template to use as SRC Path

2020-07-27 Thread 'J Hawkesworth' via Ansible Project
I would try and organize variables so they are associated with the host in inventory, rather than setting a lot of playbook vars # ansible inventory (notice both hosts in a group called 'appservers' ) [appservers] app_server_node1 appprops_file=node1-appprops.config app_server_node2

Re: [ansible-project] Error - Install tomcat

2020-07-27 Thread 'J Hawkesworth' via Ansible Project
Also the 'when' directive is indented too far, I think. Try like this - name: install tomcat7 from rhel-x86_64-server-6-datacenter-tomcat-grid- apps package: name: apache-tomcat-7.0.81 state: present when: ansible_distribution_major_version == "6" ignore_errors: yes On Friday,

[ansible-project] Re: Windows service recovery on failure with ansible?

2020-05-07 Thread 'J Hawkesworth' via Ansible Project
I thought someone had added recovery actions to win_service module, but maybe that PR never got finished, or I am confused with dependent services. I think you would have to use script module and some powershell to set recovery actions. You could maybe use sc.exe too if you are in a hurry,

[ansible-project] Re: win_acl and remote fileshares

2020-04-03 Thread 'J Hawkesworth' via Ansible Project
I had trouble writing to files on a NetApp device via a windows host over winrm. In the end it transpired the netapp device was not actually a 'domain peer' - it wasn't taking part in the domain and was just set up to allow 'Everyone' access to a share. That was fixed by upgrading to a newer

[ansible-project] Re: Any support for Windows EFS or Bitlocker?

2020-04-01 Thread 'J Hawkesworth' via Ansible Project
Not that I have heard of at the moment. Pull requests welcome of course if you do write a module. If you happen to be running in azure you can use a vm extension via the azure modules to encrypt with BitLocker. I have used that and it worked just fine. You need to wait a bit for the

[ansible-project] Re: Windows Host Unreachable

2020-03-28 Thread 'J Hawkesworth' via Ansible Project
>From the error message it looks like there is a network proxy being used. If possible I would try and set things up to not use a proxy to start with so you can rule out whether the proxy itself is breaking the communication. You might wish to try the psrp connection plugin as that has options to

[ansible-project] Re: ansible windows inventory get hostname/user/password ad-hoc from external script

2020-03-26 Thread 'J Hawkesworth' via Ansible Project
Would constructing your own lookup plugin be an option? There seem to be lots of lookup plugins that look things up in various kinds of vaults: https://docs.ansible.com/ansible/latest/plugins/lookup.html#plugin-list Could you create one of your own. If you created an inventory plugin, rather

[ansible-project] Win_ping failing with Correct Credentials

2020-03-14 Thread 'J Hawkesworth' via Ansible Project
Could it be that this patch is missing?https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-memory-hotfix Might be worth checking event log on the machine you are having trouble with. Worth checking how you are authenticating - ntlm, kerberos, credssp maybe? Check the

Re: [ansible-project] Re: Testing Authentication with Ansible

2020-03-10 Thread 'J Hawkesworth' via Ansible Project
I think you should be able to do this with uri module, but you might need to check the http response code as well. An unsuccessful http request with basic authentication will return a response from the server, but it will typically not have a 200 (OK) response code, but instead have something

[ansible-project] Re: Weird Kerberos Issues with WinRM and a new host spun up from vmware_guest

2020-03-10 Thread 'J Hawkesworth' via Ansible Project
Just to be clear, are you joining the host to the domain as part of the vmware_guest call? I have playbooks that do something similar to what you describe but with some differences. I like to drive everything from inventory so I add the host details to (static) inventory and then run the

[ansible-project] Re: Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-24 Thread 'J Hawkesworth' via Ansible Project
I have not seen this error before, but what permissions are on c:\Users\Adm\AppData\Local\Temp\ directory? Do you get any more information if you run ansible with -vv option? On Monday, February 24, 2020 at 9:16:46 AM UTC, Piyush Bansal wrote: > > Hello, > > I am running win_ping for

[ansible-project] Re: I have Ansible and Jenkins installed on Different Servers how can i configure both

2020-01-24 Thread 'J Hawkesworth' via Ansible Project
You can use the not-particularly-helpfully-named 'Publish Over SSH' Jenkins plugin https://plugins.jenkins.io/publish-over-ssh which lets you run arbitrary commands as well as transferring files. If your playbooks run for more than 2 minutes you will need to configure the 'Exec timeout (ms)'

[ansible-project] Re: Windows mapped drives – what the hell is going on?

2020-01-14 Thread 'J Hawkesworth' via Ansible Project
Having a file server mounted on lots of windows client pcs is a common pattern in windows shops but I decided to use a web server and make the windows client machines collect the apps they need using win_get_url module. Hope this helps, Jon On Tuesday, January 14, 2020 at 1:57:40 PM UTC,

[ansible-project] Re: Ansible for windows

2020-01-12 Thread 'J Hawkesworth' via Ansible Project
If i recall correctly the win_file module doesn't yet support links (pull requests welcome). However, you can probably run this via the ansible win_shell or script module https://docs.ansible.com/ansible/latest/modules/script_module.html

[ansible-project] Re: new tool: Visansible - Visualization of Ansibel-Facts

2020-01-02 Thread 'J Hawkesworth' via Ansible Project
Just to say that the issue I had turned out to be because the parsing doesn't handle the possibility that an inventory group may contain the name of one or more groups. Simple fix seems to be to ignore the line in this case and not to support visualisation of groups within groups, for now.

[ansible-project] Re: Need help on building ansible inventory file properly

2019-12-31 Thread 'J Hawkesworth' via Ansible Project
Hi I can see a couple of things that might need changing to get this to work: Try changing your playbook so it looks like this: --- - name: Playing VLAN Configuration hosts: POC_ENV connection: local vars: vlan_id: 999 vlan_name: TEST_VLAN_TEST tasks: - include_role:

[ansible-project] Re: Need help on building ansible inventory file properly

2019-12-31 Thread 'J Hawkesworth' via Ansible Project
your inventory. Hope this helps, Jon On Tuesday, December 31, 2019 at 10:13:25 AM UTC, Yehuda Pinhas wrote: > > Hi J Hawkesworth, > Can you explain exactly in which file do I need to add what code? > > Considering I have the inventories POC_ENV.yml, avaya.yml, nexus.yml for > exa

[ansible-project] Re: Need help on building ansible inventory file properly

2019-12-31 Thread 'J Hawkesworth' via Ansible Project
I suggest using a directory that contains the files you need to build up your inventory. You can also use symlinks I think This is described in the documentation in the section starting '*Aggregating inventory sources with a directory' *here:

[ansible-project] Re: Ansible create module connect MSSQL

2019-12-31 Thread 'J Hawkesworth' via Ansible Project
Worth running with -v to see if there is any more information to help you debug the problem. Try this syntax as my guess is ansible is looking for a module called 'module' instead of your custome 'mssql_query' module - name: "Execut my module on MSSQL" mssql_query: login_host:

[ansible-project] Re: ansible Inventory

2019-12-31 Thread 'J Hawkesworth' via Ansible Project
There are probably several ways of doing this and it would probably be best if you experiment a bit to find out what makes most sense for you. Personally I am more familiar with the 'ini' style of inventory so I'm not sure what problem you are really facing with the inventory. It might be

[ansible-project] Re: new tool: Visansible - Visualization of Ansibel-Facts

2019-12-30 Thread 'J Hawkesworth' via Ansible Project
Thanks for this. I have a couple of suggestions: Consider using 'argparse' so that the inventory file can be specified as it is hard coded to inventory.cfg at the moment. https://docs.python.org/3.8/library/argparse.html#module-argparse would be nice to be able to configure the path to the

[ansible-project] Re: Will Ansible work in case of Windows Jump Server?

2019-11-19 Thread 'J Hawkesworth' via Ansible Project
There is a write-up of accessing windows hosts via a bastion here: https://www.bloggingforlogging.com/2018/10/14/windows-host-through-ssh-bastion-on-ansible/ Hope this helps. Jon On Monday, November 18, 2019 at 2:08:27 PM UTC, pratik ghodekar wrote: > > Hello, > I wanted to know if we have

[ansible-project] Re: multiple playbooks or one playbook per function?

2019-11-19 Thread 'J Hawkesworth' via Ansible Project
I don't think there's a proper way, ultimately its whatever works for you. I do actually have 1 playbook per cluster type, but I have quite 'tall' software stacks (lots of steps to configure each cluster) and then I use external tools such as jenkins or gnu parallels to run multiple playbooks

[ansible-project] Re: Ansible - regex help

2019-11-19 Thread 'J Hawkesworth' via Ansible Project
I think the issue is your respfile fact contains a list, not a string, hence the [ ] in the Debug output. There are a couple of ways to fix that. You can either do it when you are creating the fact (use the 'first' filter to just get the first element of the list), like this. - name: Set

[ansible-project] Read timeout when using WinRM to apply Windows patches on Azure

2019-10-23 Thread 'J Hawkesworth' via Ansible Project
I have had issues with single core machines when windows updates include an upgrade to the dot net version. What happens is ngen recompiles all the dot net code it can find and ties up an entire core until has finished recompiling, which leaves no cpu time for winrm. Dual core boxes aren't as

Re: [ansible-project] Ansible Play book for the Windows exe file

2019-10-23 Thread 'J Hawkesworth' via Ansible Project
If you store all the settings you need in your ansible playbook this is not a problem. I like to have ansible be fully in charge of the configuration of applications. It makes it easier to know exactly what settings are applied if they are all in ansible and you don't have to check each

[ansible-project] Ansible on Windows Environment

2019-10-23 Thread 'J Hawkesworth' via Ansible Project
Hi It is not clear what you are trying to do. By default ansible connects to Windows as batch login type, not interactive user, so usually there is no graphical user interface available to ansible. You can get an interactive user login by using the Become feature of ansible, but ansible is

Re: [ansible-project] Re: Setting up Windows without interaction

2019-10-22 Thread 'J Hawkesworth' via Ansible Project
Ssh support for Windows was merged a little while back so as long as you are running a recent ansible and can get the ssh server support on to your Windows targets, you can give it a whirl. https://github.com/ansible/ansible/pull/47732 Hope this helps Jon -- You received this message

[ansible-project] Re: Ansible V2.7 - kerberos: authGSSClientStep() failed:

2019-10-22 Thread 'J Hawkesworth' via Ansible Project
Server not found in kerberos database means that the domain controller is unaware of the server. You mention using hosts file which suggests to me that the machine you want to connect to has not been joined to the domain. You almost certainly wouldn't need to use hosts file as typically joining

Re: [ansible-project] Ansible Play book for the Windows exe file

2019-10-22 Thread 'J Hawkesworth' via Ansible Project
You are using ++Option. I think it will do what you want if you change to --Option syntax. Hope this helps. Jon -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an

[ansible-project] Setting up Windows without interaction

2019-10-22 Thread 'J Hawkesworth' via Ansible Project
Most modern versions of windows have winrm enabled by default so provided you have a suitable user with sufficient privileges, you can often connect once the OS has finished booting up. That said, there are a lot of factors that need to be considered depending on how things are set up in the

[ansible-project] Ansible Play book for the Windows exe file

2019-10-22 Thread 'J Hawkesworth' via Ansible Project
Tomcat actually has a command line interface so you can configure it using that using a win_shell command. The command line interface is documented here: https://tomcat.apache.org/tomcat-9.0-doc/windows-service-howto.html Hope this helps, Jon -- You received this message because you are

Re: [ansible-project] Manual VS Ansible playbook in window server

2019-10-09 Thread 'J Hawkesworth' via Ansible Project
Have a read of this... https://docs.ansible.com/ansible/latest/user_guide/windows_faq.html#why-can-i-run-a-command-locally-that-does-not-work-under-ansible Is it possible the installer is expecting a GUI? Sometimes installers have a 'silent' or 'unattended' mode that means they can be made to

[ansible-project] Re: win_shell command execution

2019-10-08 Thread 'J Hawkesworth' via Ansible Project
You would probably need to write like this: - win_shell: 'dir PackageDeploy*.* /b > {{directory}}\configurations\temp' args: executable: cmd chdir: '{{directory}}\configurations\jmxterm' register: list_out But its probably much better to use win_find module

[ansible-project] Re: Ansible return code ok or ko

2019-10-05 Thread 'J Hawkesworth' via Ansible Project
ion. > > I want get value of play_recap, when my playbook is finish, i want get > value of "skipped=0" or "Changed=5" > > Do you understand my question ?? > > Thanks very much community ansible !!! :) > > Regards, > > Karther > > Le

Re: [ansible-project] Kerberos Authentication Failed | kerberos: authGSSClientStep() failed | Help URGENT

2019-10-04 Thread 'J Hawkesworth' via Ansible Project
Glad to hear it. On Friday, October 4, 2019 at 8:39:22 AM UTC+1, Piyush Bansal wrote: > > Hello J Hawkesworth, > > I would like to thank you very much for the suggestion. > Issue got resolved now. > Thanks for your help :) > > Thanks, > Piyush > > > On Thu, Oc

[ansible-project] Re: Managing Windows Host?

2019-10-04 Thread 'J Hawkesworth' via Ansible Project
Well to get rid the warning, remove the "{{ and }} " from your 'when' clause. The 'when' directive is a bit different from other places where you use jinja2 expressions as the "{{ and }}" are implicit. Although this might seem a bit inconsistent, it does result in easier to read tasks. If

[ansible-project] Re: Ansible return code ok or ko

2019-10-03 Thread 'J Hawkesworth' via Ansible Project
If any of your tasks fail, you will get a non-zero return code when ansible-playbook runs. So you can wrap your ansible-playbook in a bash script if you need to detect if the playbook ran ok # this one fails jon@TENSY ~ $ ansible-playbook -i does_not_exist playbook_doesnt_exist.yml ERROR! the

Re: [ansible-project] Kerberos Authentication Failed | kerberos: authGSSClientStep() failed | Help URGENT

2019-10-03 Thread 'J Hawkesworth' via Ansible Project
I suspect the issue is to do with resolving the hostname, so potentially an issue with DNS. Although you are using hostnames in your ansible inventory, it appears from the trace output that you are actually connecting via an IP address - 192.168.169.131 Kerberos requires DNS to be fully

Re: [ansible-project] Support for installing Ansible on Windows

2019-09-02 Thread 'J Hawkesworth' via Ansible Project
I use ansible from WSL most days and it works just fine for me. Unless you are calling stuff which attempts to use a system call that hasn't been implemented in WSL translation layer it will be fine. The above shouldn't be an issue with WSL 2 but I haven't tried that myself. That said I use

Re: [ansible-project] Ansible for windows

2019-09-02 Thread 'J Hawkesworth' via Ansible Project
Did you try using async to run the command? I think you should be able to use async with win_shell module. The other steps you describe sound like they could be done using win_copy module and fetch module to retrieve the test results. See

[ansible-project] Re: CSV file formatting using ansible

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
quot;{{ version.stdout_lines | to_nice_yaml }}" > dest="/tmp/loadbalancer_{{ temp }}.txt" > - name: Parse the CSV file > shell: > cmd: | > cp -f "/tmp/loadbalancer_{{ temp }}.txt" /tmp/temp.txt > cat /tmp/temp.txt| tr -s '[:

[ansible-project] Re: WINDOWS MODULE TO DOWNLOAD PATCHES

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
I think if you configure your servers to use your WSUS server as its source of windows updates, you can use the win_updates module: https://docs.ansible.com/ansible/latest/modules/win_updates_module.html I haven't configured the windows update source myself but I believe this is possible via

[ansible-project] Re: troubleshooting ansible win problem

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
t; I have upgraded powershell before on all the vms. It does connect, I can > see in task mgr that there are 5 tasks, one powershell running as the user > that I am using in my ansible play. > > I continue to work on it anyway, thanks > > Bill > > > On Thursday, June 1

[ansible-project] Re: CSV file formatting using ansible

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
Assuming you have the data from your load balancer stored in a registered variable you could run copy to write the file to disk on the controller, and then a shell task to use 'tr' command to convert the whitespace, tabs and : to a comma, and then you would have .csv file you could process.

[ansible-project] Re: Containerized Ansible SSH-ing to Windows DockerHost

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
lears some confusion, > > Thanks! > > > On Thursday, June 13, 2019 at 3:25:16 AM UTC-4, J Hawkesworth wrote: >> >> I'm not sure I fully follow how you are trying to set this up, but >> windows is not supported for running ansible itself, as stated here: >&

[ansible-project] Re: I can't edit jira issue with ansible

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
Try running your playbook with -vv It's been a while but I had some trouble with the jira module (and also running via python 2) so in the end I switched to using the 'uri' module for some things and running any playbooks that interact with jira using python 3. I forget the exact issue

[ansible-project] Re: Containerized Ansible SSH-ing to Windows DockerHost

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
I'm not sure I fully follow how you are trying to set this up, but windows is not supported for running ansible itself, as stated here: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-node-requirements I am out of touch with the latest state of windows

[ansible-project] Re: troubleshooting ansible win problem

2019-06-13 Thread 'J Hawkesworth' via Ansible Project
I don't know what this, but I have some suggestions of things you can try. Check the environment variables on the target host are ok. I'm wondering if maybe it can't find a powershell module. If this is a server 2008R2 box, make sure its had the memory fix update applied - see

Re: [ansible-project] 2019-Jun-06 devel branch and random hangs using winrm?

2019-06-08 Thread 'J Hawkesworth' via Ansible Project
Hi Bob, Does it just hang on chocolatey or on other things too? I think there's been a recent change which may have broken the ansible<->chocolatey integration although iirc its been fixed by latest chocolatey. Anything in the event logs on the target machine(s)? I don't use choco much but

[ansible-project] Re: How to update Jinja2 for Ansible

2019-06-06 Thread 'J Hawkesworth' via Ansible Project
I'm no expert in these things but I suspect you may have upgraded the version of jinja2 in your user's pip library, but when ansible runs it is picking up the version installed for all users - the 'system' version. I'm not sure how exactly you resolve this. If you don't have root/sudo access

Re: [ansible-project] need help with nested loop

2019-06-06 Thread 'J Hawkesworth' via Ansible Project
Yeah with_together would work in your scenario. Strangely I was looking to do something similar but the very helpful F5 team provided me with this, so I thought I'd share it. I was trying to find a way to switch the pool members between 2 sets of servers. One difference here is we're

[ansible-project] Re: I am trying to ping windows machine, I am using kerberos and everything is setup using domaincontroller information

2019-05-27 Thread 'J Hawkesworth' via Ansible Project
A couple of other suggestions. Is your machine really registered in DNS as 'server.domain.com'? Kerberos really needs DNS lookups to work properly - so if you can ping it and nslookup the host and get back the correct ip address, that's well worth checking as it will not work unless the

[ansible-project] Re: windows patching_uninstall

2019-05-22 Thread 'J Hawkesworth' via Ansible Project
Hmm, I have not had to do this myself. One thing you could try is using wusa, although I think you may well have to use 'become' on your task as I believe wusa won't run in a 'normal' ansible remote login - name: uninstall KB1234 win_shell: wusa /uninstall /kb:1234 become: yes Hope this

[ansible-project] Re: Dynamic Inventory using Active Directory / LDAP

2019-01-05 Thread 'J Hawkesworth' via Ansible Project
Can you share the script you have so far? I'm not aware of 'ants' but sounds like its a problem locating something that you are importing. Jon On Friday, January 4, 2019 at 10:40:05 AM UTC, Samer Odeh wrote: > > Hi, > > Thanks for sharing, I spent sometime trying to make it work ... but I am >

[ansible-project] Re: rolling tasks for multiple clusters?

2019-01-05 Thread 'J Hawkesworth' via Ansible Project
> > On Friday, January 4, 2019 at 12:51:31 AM UTC-6, J Hawkesworth wrote: >> >> I wound up having multiple playbooks and using something else to run them >> simultaneously. >> I've used gnu parallels in some cases and jenkins jobs in others. >> parallels is nice

[ansible-project] Re: rolling tasks for multiple clusters?

2019-01-03 Thread 'J Hawkesworth' via Ansible Project
I wound up having multiple playbooks and using something else to run them simultaneously. I've used gnu parallels in some cases and jenkins jobs in others. parallels is nice because you can kick off a lot of jobs simultaneously with a single command line. However its not great for viewing

[ansible-project] Service restart in Windows Operating system using playbooks

2018-12-08 Thread 'J Hawkesworth' via Ansible Project
Hi, You need to tell the playbook which hosts you want to run your tasks on, something like the following (not tested). --- - hosts: windows tasks: - name: restart spooler win_service: name: spooler state: restarted Hope this helps, Jon -- You received this message

[ansible-project] Re: Passing One Item Through Entire Playbook Instead of All Items

2018-11-22 Thread 'J Hawkesworth' via Ansible Project
Its hard to understand without seeing your playbook tasks but it sounds like you want to loop through a set of tasks, which you can do by looping over include_role or import_role However it is well worth reading through this thread https://github.com/ansible/ansible/issues/13262 Depending on

[ansible-project] Re: Template File Transfer

2018-11-19 Thread 'J Hawkesworth' via Ansible Project
dest: /etc/motd > > //roles/common/templates/create_motd.j2 > > {{v1}} > {% for item in group[ %} > {{item}} > {% endfor %} > {{v2}} > Last tool-run was: {{ansible_date_time.date}} > {{change_me}} > > > On Monday, November 19, 2018 at 9:50:57 AM UTC+1, J Hawkes

[ansible-project] Re: Template File Transfer

2018-11-19 Thread 'J Hawkesworth' via Ansible Project
Hard to guess what's going on here without seeing your playbook and template file, but my guess would be the template (.j2) file isn't in one of the places that ansible expects to find it. If your template is in a role (best place for it) then there are some rules about where ansible will look

Re: [ansible-project] Nested loop with second loop depending on first item

2018-11-18 Thread 'J Hawkesworth' via Ansible Project
Hmm, would the cartesian lookup help you? https://docs.ansible.com/ansible/latest/plugins/lookup/cartesian.html On Wednesday, November 14, 2018 at 8:05:32 AM UTC, saisum...@gmail.com wrote: > > Hi I have seen ur resolutions in this page i. > > I am also having the same issue with nested loops .

Re: [ansible-project] Parallel execution of tasks in playbook

2018-11-16 Thread 'J Hawkesworth' via Ansible Project
Hello, Ansible will run tasks in parallel against groups of hosts, so I suggest you convert your apache_sever_list.yaml file into ansible inventory format and put all the hosts in it into a group called 'apache' then you can run tasks against - hosts: apache tasks: - name: any

[ansible-project] Re: WinRM Connection Error

2018-09-20 Thread 'J Hawkesworth' via Ansible Project
python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 > 20150623 (Red Hat 4.8.5-28)] > > ansible windows -m win_ping - > > "changed": false, > "msg": "kerberos: must be string or read-only buffer, not None", >

[ansible-project] Re: Ansible hangs on Windows cleanmgr.exe

2018-09-04 Thread 'J Hawkesworth' via Ansible Project
cleanmgr is probably waiting for window to display progress, but winrm has no window available so that's probably why it hangs See https://stackoverflow.com/questions/28852786/automate-process-of-disk-cleanup-cleanmgr-exe-without-user-intervention You might be able to use something like this,

[ansible-project] Re: Need help with win_package [msi file with TRANSFORMS]

2018-09-04 Thread 'J Hawkesworth' via Ansible Project
;> The thing that i don't understand is the command with the same command >> (*msiexec >> /i The msi package.msi /passive **TRANSFORMS='"Group Policy >> Deployment.mst"'*) on powershell works fine >> >> Have you got any other solutions? >>

Re: [ansible-project] Re: Jenkins - Ansible integration

2018-08-20 Thread 'J Hawkesworth' via Ansible Project
Jenkins usually operates on a 'workspace' which is different for each jenkins job. So in your case it would expect to find files in /var/lib/jenkins/workspace/ Ansible_create_user not in /home/ansible/create_user.yml You might find another tool provides tighter integration with your playbooks

[ansible-project] Re: Getting security bad md5 certificate after running configureRemotingForAnsible.ps1

2018-08-14 Thread 'J Hawkesworth' via Ansible Project
If you have run before on the same box you might need use the -ForceNewSSLCert option perhaps? (just a guess, not something I've seen myself. If that's not it, can you send the exact message you get? Jon On Tuesday, August 14, 2018 at 5:35:00 PM UTC+1, ssh...@starbucks.com wrote: > > Perhaps

[ansible-project] Re: documentation in my playbooks

2018-08-13 Thread 'J Hawkesworth' via Ansible Project
Nothing implemented I believe, but see the discussion here: https://github.com/ansible/proposals/issues/19 Jon On Monday, August 13, 2018 at 1:04:17 PM UTC+1, eric.b@nasa.gov wrote: > > Short question: > > Is it possible for me to leverage whatever-it-is that makes ansible-doc work > for

[ansible-project] Re: Need some help using Kerberos Authentication for Windows Target

2018-08-12 Thread 'J Hawkesworth' via Ansible Project
I haven't seen this error before myself. This line in your your errors makes it look to me like there is something unexpected about the underlying libs on your ansible controller. /usr/lib/python2.7/site- packages/winrm/transport.py:299: UserWarning: Function does not contain optional arg

[ansible-project] Re: WinRM Connection Error

2018-08-10 Thread 'J Hawkesworth' via Ansible Project
n if I put an erroneous > one. Event log shows an alert to an ntlm authentication but I can't find > anything as far as a successful login I'm targeting Server 2012R2. Ran a > clean install and still run into the issue > > On Tuesday, August 7, 2018 at 3:44:14 PM UTC-4, J Hawkeswort

[ansible-project] Re: Need help with win_package [msi file with TRANSFORMS]

2018-08-08 Thread 'J Hawkesworth' via Ansible Project
Try putting all the arguments on one line perhaps? I don't think 'arguments' takes a list, just a string: *- name: win_package: path: C:\tmp\The msi package.msi arguments: /passive TRANSFORMS='"Group Policy Deployment.mst"' state: present* MSIs seem to have different command

Re: [ansible-project] Speeding up very large playbooks

2018-08-08 Thread 'J Hawkesworth' via Ansible Project
Also, consider pre-generating the configuration you need so there's less need to template at runtime. As well as (hopefully) speeding things up a bit, you can examine or even validate the configuration you are intending to apply before actually applying it to your devices. Hope this helps, Jon

[ansible-project] Re: WinRM Connection Error

2018-08-07 Thread 'J Hawkesworth' via Ansible Project
That's a new one on me, but I have a few suggestions of things you can try. Try using a hostname instead of an ip address. Try not running ansible from a venv (should be fine, but just peeling back a layer). Check the event log on the target windows box (eventvwr.msc) and see if there is any

[ansible-project] Re: Win_update

2018-08-07 Thread 'J Hawkesworth' via Ansible Project
Can you share your playbook? I have definitely had this running in the past. Jon On Friday, August 3, 2018 at 7:13:15 PM UTC+1, Izzy Martinez wrote: > > Is anyone using win_update for their windows servers on vmware to patch > them Or working for them? For the life of me, I can't make them

Re: [ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread 'J Hawkesworth' via Ansible Project
See the discussion here for some other ideas: https://github.com/ansible/proposals/issues/31 On Tuesday, August 7, 2018 at 12:12:32 PM UTC+1, Karl Auer wrote: > > If you can't place the tasks in different playbooks, then they are not > truly independent. Why can you not use separate playbooks?

[ansible-project] Re: win_shell task failing with ansible error: Get-AnsibleParam: Missing required argument: _raw_params

2018-08-06 Thread 'J Hawkesworth' via Ansible Project
Have a look at the examples in the module documentation https://docs.ansible.com/ansible/latest/modules/win_shell_module.html#examples and you'll see the format is a little different. This ought to run your script. You might want to use the `script` module which can deliver your script to

[ansible-project] Re: Ansible ping to Windows fails with credssp , “Session' object has no attribute 'merge_environment_settings”

2018-05-23 Thread 'J Hawkesworth' via Ansible Project
Sounds like you have the issue described here: https://groups.google.com/forum/#!topic/ansible-project/ez68TZQciXE On Monday, May 21, 2018 at 8:51:57 PM UTC+1, Harshit Srivastava wrote: > > I have configured Ansible on my ubuntu 14.04 and my target machine is a > windows server 2016, but it

[ansible-project] Re: Error while trying to ping a WIN 2016

2018-04-30 Thread 'J Hawkesworth' via Ansible Project
I'd add 'use hostnames, not ip addresses' as well, HTTPS (and kerberos/Active Directory) really need hostnames, not ip addresses to work (you may be, I can't tell from your example though). Hope this helps, Jon On Monday, April 23, 2018 at 3:34:20 AM UTC+1, Jordan Borean wrote: > > It really

[ansible-project] Using ansible to manage windows 10 vm software applications with no Internet Access

2018-04-29 Thread 'J Hawkesworth' via Ansible Project
I don't manage windows desktops, only windows servers, but one thing you could do is put all the software you need on the ansible controller and then put a web server on the ansible box too. Then you can fetch the installers using ansible's win_get_url module, and install them with win_package,

[ansible-project] Re: Updating Tomcat server port

2018-04-19 Thread 'J Hawkesworth' via Ansible Project
Unless you are planning on updating your tomcat version very frequently, it might be simpler to use `template` module to substitute in the port number. We have a few other custom changes in our server.xml so it made sense for us. I'd recommend keeping the unmodified server.xml around in your

[ansible-project] Re: Ansible 2.5 is not accepting dynamic hosts variable

2018-04-17 Thread 'J Hawkesworth' via Ansible Project
I suggest making 'dbhosts' a group name in your inventory, then you can have hosts: dbhosts in your playbook, and its settled that what happens in that playbook will only happen on hosts in the group 'dbhosts' If you still need to set hosts dynamically, consider defaulting, like this hosts:

Re: [ansible-project] Re: Ansible Playbook running for longtime/indefinitely for windows 2012 R2 Ansible Playbook

2018-04-17 Thread 'J Hawkesworth' via Ansible Project
Please share your playbook so others can understand what ansible is attempting to do. On Monday, April 16, 2018 at 7:12:28 PM UTC+1, Ramanjaneyulu S wrote: > > Thanks for replying. Unfortunately, rebooting did not worked for me. > > On Friday, 13 April 2018 12:47:52 UTC-4, Namasivayam C wrote:

[ansible-project] Re: Configure multiple oracle instances in a loop

2018-04-16 Thread 'J Hawkesworth' via Ansible Project
Here's some ideas You can define a host variable in your ansible inventory file, like this -- # ansible inventory # development hosts below here devdb01 enterprise_manager_port=5500 # test hosts below here testdb01 enterprise_manager_port=5501 and then create a template dbca.rsp file,

[ansible-project] Ansible and Packer

2018-04-09 Thread 'J Hawkesworth' via Ansible Project
Sure. Install packer on the same machine as you have installed ansible Andy then start packer using shell module, delegated to local host. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] Re: win_group_membership

2018-03-29 Thread 'J Hawkesworth' via Ansible Project
vmware_guest module allows you to run scripts in 'runonce' section, so you can run the configure for remoting script as part of this, and any other steps you need. I use a playbook like the following to create vm from template. Before using you have to add a hostname to the 'domainmember'

[ansible-project] Re: Cannot enable WinRM remoting on Windows 10 Home Edition

2018-03-27 Thread 'J Hawkesworth' via Ansible Project
double check the password is correct - that error implies the username/password combination doesn't exist or is incorrect on the windows hosts. On Tuesday, March 27, 2018 at 4:09:21 PM UTC+1, Dinesh Vashisht wrote: > > > While trying to enable PowerShell removing on Windows 10 Home Edition >

[ansible-project] Re: Are there Ansible modules available for Nutanix and Hyper-V?

2018-03-16 Thread 'J Hawkesworth' via Ansible Project
Looks like someone is working on a hyper-v module here: https://github.com/glenndehaan/ansible-win_hyperv_guest - I haven't tried it but perhaps contact the developer if its something you can help to test out. Hope this helps, Jon On Friday, March 16, 2018 at 9:34:31 AM UTC, Dinesh Vashisht

[ansible-project] Re: Error while running bigip_node module

2018-03-15 Thread 'J Hawkesworth' via Ansible Project
I *think* you'd have to run your ansible command using python2.7 - something like /usr/bin/python2.7 /usr/local/bin/ansible-playbook If you want to run remote ansible commands using 2.6 or something else, you can set ansible_python_interpreter in your inventory/group_vars as described

[ansible-project] Re: Passing extra_vars via provisioning callback using PowerShell

2018-03-12 Thread 'J Hawkesworth' via Ansible Project
Can you share both your code and the results you are getting? I'm strugling a bit to understand. If you are attempting to use say win_template to create a powershell script then you'll need to use the {{ }} in your template file so that ansible knows to substitute in the value for the

[ansible-project] Re: Unarchive faild with spring boot war archive

2018-03-01 Thread 'J Hawkesworth' via Ansible Project
I suggest running a zipinfo -v on the .war file and on something else that will unarchive and see if you can isolate any differences. Also I wonder if it is generating a 64bit zip file and perhaps your /usr/bin/unzip doesn't like that. I found an old ant build on one of our projects that had

[ansible-project] Re: kerberos: Bad HTTP response returned from server. Code 400

2018-02-28 Thread 'J Hawkesworth' via Ansible Project
Just wondering if this is a transient error? I have occasionally had problems when the windows host is applying windows updates or running ngen to recompile dotnet code following installation of an upgrade to dotnet framework. Jon -- You received this message because you are subscribed to

[ansible-project] Re: Power Shell remoting (WinRM trust) not working with Active Directory Kerberos Authentication

2018-02-26 Thread 'J Hawkesworth' via Ansible Project
try using ansible_user: automat...@itrnetwork.com as the user name. Without this ansible will expect 'automation' to be a local user, not a domain user. Also, if you are wanting to control remote resources (file shares on other machines) via ansible and a windows jump host, its worth

[ansible-project] Virtual Box Installation on Windows Server 2012

2018-02-25 Thread 'J Hawkesworth' via Ansible Project
Hmm, I think installing Virtualbox might be a bit tricky as, if I recall, it installs it's own network drivers and has to restart networking during the installation. Restarting networking is pretty much guaranteed to stop winrm I think. That said you are getting an error rather than a

[ansible-project] Re: Dynamic Inventory using Active Directory / LDAP

2018-02-19 Thread 'J Hawkesworth' via Ansible Project
Here's a rather basic and unfinished script which might be of use to you too. By the way inventory plugins are a thing now, might be worth while making into a inventory plugin rather than a simple inventory script #!/usr/bin/env python # -*- coding: utf-8 -*- ''' Example dynamic inventory

[ansible-project] Re: KDC has no support for encryption type

2018-02-19 Thread 'J Hawkesworth' via Ansible Project
I believe you can get round this by setting the following in your [ibdefaults] section of your krb5.conf default_tgs_enctypes = arcfour-hmac-md5 des-cbc-crc des-cbc-md5 default_tkt_enctypes = arcfour-hmac-md5 des-cbc-crc des-cbc-md5 Hope this helps, Jon On Monday, February 19, 2018 at

[ansible-project] Re: Windows - become_method runas - password definition

2018-02-19 Thread 'J Hawkesworth' via Ansible Project
Hello, I haven't tried this myself but I am wondering if you maybe have a password containing a special character, such as $ - I have had trouble with passwords which contain characters which have reserved meaning in powershell in the past? Also do you perhaps mean to use win_file module

  1   2   3   4   5   6   7   8   >