Re: [ansible-project] GUI Display over SSH on Windows server

2023-09-18 Thread Wei-Yen Tan
Doesn't work that way Sent from Outlook for iOS From: ansible-project@googlegroups.com on behalf of Michele Sent: Tuesday, September 19, 2023 4:32:28 AM To: Ansible Project Subject: [ansible-project] GUI Display over SSH on Windows

Re: [ansible-project] Install multiple named packages with 'community.general.zypper'

2023-09-18 Thread Wei-Yen Tan
It is possible. If not within the the module use with_items or loops. Give zypper a list Sent from Outlook for iOS From: ansible-project@googlegroups.com on behalf of Dick Visser Sent: Tuesday, September 19, 2023 8:19:55 AM To:

Re: [ansible-project] Re: Custom modules that can run on both Linux and Windows

2023-08-24 Thread Wei-Yen Tan
I have managed to get the same functions that windows uses for powershell on ansible to work on linux. In the exit-json function instead of return I changed to write-output, viola it works. https://www.powershellgallery.com/packages/PSAnsibleHelperFunctions4Linux/0.0.1 Sent from Outlook for

Re: [ansible-project] Ansible Powershell Usage

2023-03-15 Thread Wei-Yen Tan
On a sidenote. Actually I have used powershell on linux. I managed to get it working over ssh, and Refactored the helper functions for powershell task development. https://www.powershellgallery.com/packages/PSAnsibleHelperFunctions4Linux/0.0.1 I also wrote a proof of concept collection to do

Re: [ansible-project] Ansible trigering Python Code to Merge CSV's into Excel

2022-11-28 Thread Wei-Yen Tan
And if you are really game one can develop their own modules using Python. They have their own helper functions to do this to make it feel and look like a native task Sent from Outlook for iOS From: 'Rowe, Walter P. (Fed)' via Ansible

Re: [ansible-project] Re: WinRM kerberos- HTTPSConnectionPool

2022-10-27 Thread Wei-Yen Tan
Minimum powershell requirement is version 3 for windows. Powershell version 2 is not compatible Sent from Outlook for iOS From: ansible-project@googlegroups.com on behalf of AdminLP Sent: Thursday, October 27, 2022 11:28:39 PM To:

Re: [ansible-project] GitHub Webhook not working

2022-09-18 Thread Wei-Yen Tan
What's in your step that triggers the awx web hook? Get Outlook for iOS From: 'Maik Brauer' via Ansible Project Sent: Sunday, September 18, 2022 4:00:42 PM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] GitHub Webhook

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
ct: Re: [ansible-project] Re: win_ping.yml VERY HAPPY ! win_ping.yml now works successfully. So WinRM must be configured correctly. Thew ! We were putting variables into the Windows Inventory Variables section. But we now have a main.yml file. Also thanks to Wei-Yen Tan for suggesting

Re: [ansible-project] Module copy, remote_src "no" not work

2022-09-02 Thread Wei-Yen Tan
Yoy don't have that directory on the destination node. Create that directory with the file module and it will work Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of SysAdmin EM Sent: Saturday, September 3, 2022

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
If it's in tower I would strongly use a machine credential and if you are connecting to a domain set up a krb5.conf and use 5985. Problems disappear then. Get Outlook for iOS<https://aka.ms/o0ukef> From: Wei-Yen Tan Sent: Saturday, September 3, 2022 1:54

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
Also if it's a domain user should it have the kerberos notation. Ansible_svc@DOMAIN.LOCAL? By putting in the way that you are it may look like a local user Get Outlook for iOS<https://aka.ms/o0ukef> From: Wei-Yen Tan Sent: Saturday, September 3, 2022 1

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
__ From: 'Nicholas Branson' via Ansible Project Sent: Saturday, September 3, 2022 1:23:46 AM To: Ansible Project Subject: Re: [ansible-project] Re: win_ping.yml hi Wei-Yen Tan domain service account, who is a member of local administrators group. WinRM configured on port 5986 Not sure if DUO

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
2 1:23:46 AM To: Ansible Project Subject: Re: [ansible-project] Re: win_ping.yml hi Wei-Yen Tan domain service account, who is a member of local administrators group. WinRM configured on port 5986 Not sure if DUO is blocking things... fatal: [server20]: UNREACHABLE! => { 40 "chan

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
2 1:23:46 AM To: Ansible Project Subject: Re: [ansible-project] Re: win_ping.yml hi Wei-Yen Tan domain service account, who is a member of local administrators group. WinRM configured on port 5986 Not sure if DUO is blocking things... fatal: [server20]: UNREACHABLE! => { 40 "changed&qu

Re: [ansible-project] Re: win_ping.yml

2022-09-02 Thread Wei-Yen Tan
Under which port and user? Could be a mismatch Get Outlook for iOS From: 'Nicholas Branson' via Ansible Project Sent: Friday, September 2, 2022 11:50:24 PM To: Ansible Project Subject: [ansible-project] Re: win_ping.yml Hello All, So I

Re: [ansible-project] win_ping.yml

2022-08-24 Thread Wei-Yen Tan
Use 5985 with krb5.conf. If you are using 18.0+ I wrote a blog about it last year. Some variables may have changed but the concept stays the same. Just use new ones listed in awx-operator http://weiyentan.github.io/2021/Installing-awx-kubernetes/ Get Outlook for iOS

Re: [ansible-project] win_ping.yml

2022-08-24 Thread Wei-Yen Tan
Are you connecting through domain or workgroup? It looks like you are connecting through domain credentials through to 5986. From experience this gets finicky. I always use 5985 with domain credentials in conjunction with a krb5.conf file Get Outlook for iOS

Re: [ansible-project] win_ping.yml

2022-08-24 Thread Wei-Yen Tan
I can. We are managing windows systems even on the old awx version 9 through winrm and ad Get Outlook for iOS From: 'Nicholas Branson' via Ansible Project Sent: Wednesday, August 24, 2022 10:37:23 PM To: Ansible Project Subject: Re:

Re: [ansible-project] Deploying Windows Server using Ansible Tower

2022-08-01 Thread Wei-Yen Tan
the new host. Just be sure the windows image is configure for ansible, and then use either a cloud_init or or a first run script to execute the callback. On Fri, Jul 29, 2022, 12:18 PM Wei-Yen Tan wrote: You can use add_host to the playbook that generates In memory hosts during the execution r

Re: [ansible-project] Deploying Windows Server using Ansible Tower

2022-08-01 Thread Wei-Yen Tan
e callback. On Fri, Jul 29, 2022, 12:18 PM Wei-Yen Tan wrote: You can use add_host to the playbook that generates In memory hosts during the execution run Get Outlook for iOS<https://aka.ms/o0ukef> From: 'Nicholas Branson' via Ansible Project Sent: Friday,

Re: [ansible-project] Deploying Windows Server using Ansible Tower

2022-07-29 Thread Wei-Yen Tan
You can use add_host to the playbook that generates In memory hosts during the execution run Get Outlook for iOS From: 'Nicholas Branson' via Ansible Project Sent: Friday, July 29, 2022 10:31:11 PM To: Ansible Project Subject:

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
produces a file, which states "Test is defined" (as desired). The other way around with test=false decades software schrieb am Mittwoch, 5. Januar 2022 um 19:22:43 UTC+1: Exactly. Thanks Am 05.01.2022 um 19:21 schrieb Wei-Yen Tan : Can't see why you can't just run it before t

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
um 19:22:43 UTC+1: Exactly. Thanks Am 05.01.2022 um 19:21 schrieb Wei-Yen Tan : Can't see why you can't just run it before the template task. But your choice really. Get Outlook for iOS<https://aka.ms/o0ukef> From: ansible...@googlegroups.com on behalf of

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
chrieb Wei-Yen Tan mailto:weiyen@gmail.com>>: Why put in a jinja file? Run the assertion first in the role task /fail exit etc. Then run the template task Get Outlook for iOS<https://aka.ms/o0ukef> From: ansible-project@googlegroups.com<m

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
2 7:11:11 AM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] Variable state depending on existence of a file on host system - possible? Looks pretty verbose. I have some doubts to be able to use this in a .j2 file. Am 05.01.2022 um 19:08 schrieb Wei-Yen Tan mailto:

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
t out. Am 05.01.2022 um 18:34 schrieb Wei-Yen Tan mailto:weiyen@gmail.com>>: Use stat module to get your required facts. Bring it into assert or fail https://docs.ansible.com/ansible/latest/collections/ansible/builtin/stat_module.html Get Outlook for iOS<https:

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
et Am 05.01.2022 um 18:18 schrieb Wei-Yen Tan :  You could use the assert task to check that the variable exist before starting the run Get Outlook for iOS<https://aka.ms/o0ukef> From: 'Neil Young' via Ansible Project Sent: Thursday, January 6, 2022 6:16:28 AM

Re: [ansible-project] Variable state depending on existence of a file on host system - possible?

2022-01-05 Thread Wei-Yen Tan
You could use the assert task to check that the variable exist before starting the run Get Outlook for iOS From: 'Neil Young' via Ansible Project Sent: Thursday, January 6, 2022 6:16:28 AM To: Ansible Project Subject: [ansible-project]

Re: [ansible-project] Reg: Service check and stop during windows update.

2021-11-16 Thread Wei-Yen Tan
Create a new play before this one to do your pretask. Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of harshc...@gmail.com Sent: Wednesday, November 17, 2021 12:25:39 AM To: Ansible Project Subject:

Re: [ansible-project] Re: windows patching playbook

2021-10-18 Thread Wei-Yen Tan
Yes you can. I created a custom ansible module that handles windows patching as scaling in Windows patching can be a pain especially on long duration times. Which ever way you choose ansible has an answer for it Get Outlook for iOS From:

Re: [ansible-project] Playbook not able to SSH to the hosts

2021-09-16 Thread Wei-Yen Tan
Is the server name resolvable? Can the computer ansible see the server? From: ansible-project@googlegroups.com on behalf of janani Shri Sent: Friday, September 17, 2021 3:48:20 PM To: Ansible Project Subject: [ansible-project] Playbook not able to SSH to the

Re: [ansible-project] How to connect ansible on Linux to Windows server using Windows Management Instrumentation (WMI)

2021-09-16 Thread Wei-Yen Tan
What is their reasoning for that policy Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Mohtashim S Sent: Friday, September 17, 2021 9:49:03 AM To: Ansible Project Subject: [ansible-project] How to connect ansible

Re: [ansible-project] How to connect ansible on Linux to Windows server using Windows Management Instrumentation (WMI)

2021-09-16 Thread Wei-Yen Tan
Ansible needs winrm. Can't use wmi Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Mohtashim S Sent: Friday, September 17, 2021 9:49:03 AM To: Ansible Project Subject: [ansible-project] How to connect ansible on

Re: [ansible-project] Re: x509_certificate – Generate and/or check OpenSSL certificates

2021-08-23 Thread Wei-Yen Tan
No. There has to be a windows specific task for this written in powershell. Get Outlook for iOS From: 'Adir' via Ansible Project Sent: Tuesday, August 24, 2021 2:52:47 AM To: Ansible Project Subject: [ansible-project] Re: x509_certificate

Re: [ansible-project] windows host automation

2021-08-19 Thread Wei-Yen Tan
For of all ansible does not use rdp not any windows gui automation. Translate that to actions that you can do programmatically and come back Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Sakshi Jain Sent:

Re: [ansible-project] Is there an Ansible Windows module to configure certificates similar to MMC.exe service?

2021-08-12 Thread Wei-Yen Tan
What would you like it to do exactly? Can you describe in pseudo code please? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of zil...@gmail.com Sent: Friday, August 13, 2021 12:51:08 PM To: Ansible Project Subject:

Re: [ansible-project] Infrastructure as Code vs Self-Service

2021-08-08 Thread Wei-Yen Tan
My question was not to give them access to git. I assumed you were using awx. So let's go back to using a cmdb and ansible cmdline. Ok. Then you could make use of a lookup of your cmdb database. It’s an interesting idea! At a high level you would want something that can read your cmdb database.

Re: [ansible-project] Infrastructure as Code vs Self-Service

2021-08-05 Thread Wei-Yen Tan
If that’s the case why not create a survey that these guys can fill out. The fields are mapped to extra vars and these can then be supplanted as parameters into the code. (Using the template module ) Get Outlook for iOS From:

Re: [ansible-project] Re: deploy VM in ESXi using Ansible

2021-07-04 Thread Wei-Yen Tan
Looks like your vm_guest formatting part is wrong Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Orkhan Mammadov Sent: Monday, July 5, 2021 3:46:34 AM To: Ansible Project Subject: [ansible-project] Re: deploy VM

Re: [ansible-project] vSphere Playbook runs from Ansible Tower but not when run with Ansible-Playbook

2021-06-30 Thread Wei-Yen Tan
Yoy need to install the pyvomi through pip on your machine. Create a virtual environment if needed Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of david.burt...@bmt.ky Sent: Thursday, July 1, 2021 2:34:46 AM To:

Re: [ansible-project] How to copy a file from windows to linux

2021-06-25 Thread Wei-Yen Tan
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/slurp_module.html Get Outlook for iOS<https://aka.ms/o0ukef> From: Wei-Yen Tan Sent: Saturday, June 26, 2021 9:02:14 AM To: ansible-project@googlegroups.com Subject: Re: [ansible-projec

Re: [ansible-project] How to copy a file from windows to linux

2021-06-25 Thread Wei-Yen Tan
That's not using the slurp module Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of bulent senguler Sent: Saturday, June 26, 2021 8:57:56 AM To: Ansible Project Subject: Re: [ansible-project] How to copy a file from

Re: [ansible-project] How to copy a file from windows to linux

2021-06-25 Thread Wei-Yen Tan
What do yoy mean. Is it doing the same thing? Can you please share play book and task? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of bulent senguler Sent: Saturday, June 26, 2021 8:25:00 AM To: Ansible Project

Re: [ansible-project] How to copy a file from windows to linux

2021-06-25 Thread Wei-Yen Tan
Slurp to ansible controller then copy to linux Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of bulent senguler Sent: Saturday, June 26, 2021 7:41:26 AM To: Ansible Project Subject: [ansible-project] How to copy a

Re: [ansible-project] Creating a Group and Project within a group with gitlab module

2021-06-23 Thread Wei-Yen Tan
There is a git lab project module. Use that and refer to the gitlab group in it On Wed, 23 Jun 2021 at 11:38 PM Michael Weiner wrote: > Hi all, > > I want to create a group in gitlab, and within that group create a > project. Any suggestions? > > I can run the gitlab_group module, and it does

Re: [ansible-project] Batch size (serial) and playbook failing

2021-06-19 Thread Wei-Yen Tan
https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html Get Outlook for iOS<https://aka.ms/o0ukef> From: Wei-Yen Tan Sent: Saturday, June 19, 2021 10:11:46 PM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] Batch size (

Re: [ansible-project] Batch size (serial) and playbook failing

2021-06-19 Thread Wei-Yen Tan
You could do a group of the hosts that you are able to connect to and exclude the rest. There are also certain Notations in the hosts and limit you can use to exclude the non connevtable hosts Get Outlook for iOS From:

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
So just for clarity,@Vladimir, it looks like your role is dynamically generating handlers based on what the configuration is set? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Vladimir Botka Sent: Saturday,

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
ei-Yen Tan wrote: > That's what handlers are for. If the app has not changed the app will not > be reloaded > > On Sat, 19 Jun 2021 at 10:23 AM jane p wrote: > >> On Fri, Jun 18, 2021 at 5:15 PM Wei-Yen Tan wrote: >> > >> > Why do yoy have started twice?

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
That's what handlers are for. If the app has not changed the app will not be reloaded On Sat, 19 Jun 2021 at 10:23 AM jane p wrote: > On Fri, Jun 18, 2021 at 5:15 PM Wei-Yen Tan wrote: > > > > Why do yoy have started twice? I don't think I am following properly. > Can

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
In my playbooks I have never made That complicated. If I change a state I create a handler to restart the service. (Handler is actions that happen after a state change). On Sat, 19 Jun 2021 at 10:11 AM jane p wrote: > On Fri, Jun 18, 2021 at 4:41 PM Wei-Yen Tan wrote: > > &g

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
Why do yoy have started twice? I don't think I am following properly. Can you please be more specific? On Sat, 19 Jun 2021 at 10:11 AM jane p wrote: > On Fri, Jun 18, 2021 at 4:41 PM Wei-Yen Tan wrote: > > > > Ansible is a tool for configuration management which has been aptly b

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
Right it is becoming clearer where you are going with this. Ansible has a few modes to do a job run. If you want to see what is going to be applied you can use check mode. If you want to apply at a more convenient time then use run (which is the default) On Sat, 19 Jun 2021 at 10:01 AM jane p

Re: [ansible-project] Ansible best practices: idempotance

2021-06-18 Thread Wei-Yen Tan
If I may chime in. Ansible is a tool for configuration management which has been aptly been explained but I will explain further to give some detail . The second use case is orchestration. If you program say with a script you tell it what to do. You have to control from the start to finish the

Re: [ansible-project] Failed to create temporary directory

2021-06-18 Thread Wei-Yen Tan
Okay apologies. This is the key message here. Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Permissions. On Sat, 19 Jun 2021 at 9:32 AM nitesh shet wrote: > i just moved my config file to some

Re: [ansible-project] Failed to create temporary directory

2021-06-18 Thread Wei-Yen Tan
please specify which entry exactly > do i need to change in that config file? > > On Sat, Jun 19, 2021 at 2:53 AM Wei-Yen Tan wrote: > >> Why do you have so much? I just have two or three entries in mine. Role >> path. and collections path? Are you just copying and pasting

Re: [ansible-project] Failed to create temporary directory

2021-06-18 Thread Wei-Yen Tan
e amount of time to wait for a > command > # or RPC call before timing out. The value for the command timeout must > # be less than the value of the persistent connection idle timeout > (connect_timeout) > # The default value is 30 second. > #command_timeout = 30 > > [accelerate] >

Re: [ansible-project] Failed to create temporary directory

2021-06-18 Thread Wei-Yen Tan
hat i have kept the config file as it is. > > > On Sat, Jun 19, 2021 at 2:41 AM Wei-Yen Tan wrote: > >> When you run ping in Ansible playbook or ansible they are using the same >> module. Ansible Ping is not the same as ping. Ansible ping makes an ssh >> connection to the serve

Re: [ansible-project] Failed to create temporary directory

2021-06-18 Thread Wei-Yen Tan
When you run ping in Ansible playbook or ansible they are using the same module. Ansible Ping is not the same as ping. Ansible ping makes an ssh connection to the server. When ansible runs a module it writes a file to the home directory of the user on the remote machine to get the right

Re: [ansible-project] Based on vendor have to execute playbook

2021-06-16 Thread Wei-Yen Tan
Use conditionals as in when Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of NAVEEN Sent: Thursday, June 17, 2021 12:28:54 PM To: ansible-project@googlegroups.com Subject: [ansible-project] Based on vendor have to

Re: [ansible-project] Ansible for Windows

2021-06-15 Thread Wei-Yen Tan
https://docs.ansible.com/ansible/latest/user_guide/become.html You can have it at the top of your play too Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Gabriel Viegas Sent: Wednesday, June 16, 2021 9:17:00 AM

Re: [ansible-project] Ansible for Windows

2021-06-15 Thread Wei-Yen Tan
You can use become:yes in your play. Iirc Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Gabriel Viegas Sent: Wednesday, June 16, 2021 9:10:38 AM To: Ansible Project Subject: [ansible-project] Ansible for Windows

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread Wei-Yen Tan
Pip install pyscopg2 --user. I think Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of zil...@gmail.com Sent: Wednesday, June 16, 2021 8:40:37 AM To: Ansible Project Subject: Re: [ansible-project] Failed to import

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread Wei-Yen Tan
Install that python module psycopg2 on the local machine. You haven’t got the dependency installed Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of zil...@gmail.com Sent: Wednesday, June 16, 2021 3:27:53 AM To:

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread Wei-Yen Tan
Googling around I found this example: Ansible Loves PostgreSQL - 2ndQuadrant | PostgreSQL looks like name is what you are looking for - postgresql_db: name=module_test state=present

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread Wei-Yen Tan
I Should say option Get Outlook for iOS<https://aka.ms/o0ukef> From: Wei-Yen Tan Sent: Tuesday, June 15, 2021 11:44:52 PM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] postgresql_db for Windows? No. But the commands on linux should b

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread Wei-Yen Tan
No. But the commands on linux should be able to reach out to a remote host. Can you delegate locally and reach out to remote windows host?

Re: [ansible-project] How can we host our own Ansible Galaxy server?

2021-06-08 Thread Wei-Yen Tan
Thank you for this. Is there any docker /container installation packages? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Brian Coca Sent: Wednesday, June 9, 2021 5:01:21 AM To: Ansible Project Subject: Re:

Re: [ansible-project] Template tasks based on OS version...

2021-05-26 Thread Wei-Yen Tan
Using ansible facts and when in the play. have done this before. Am on my phone so can send you an example later. Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Andy Speagle Sent: Thursday, May 27, 2021 8:01:16

Re: [ansible-project] Reg: VMware Tools install using Ansible

2021-05-19 Thread Wei-Yen Tan
There are ways to instruct through the api and there maybe a task for it but I am wondering why you couldn't bake it in to the template? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of harshc...@gmail.com Sent:

Re: [ansible-project] Use Ansible for Patch Management

2021-05-17 Thread Wei-Yen Tan
In response to your first question you can use facts to query the os type then pass it to the correct task. Ansible has patch tasks for many linux distributions. In regards to templates there are many examples in github repository. I can't recall on the top of my head. In response to your

Re: [ansible-project] Use Ansible for Patch Management

2021-05-17 Thread Wei-Yen Tan
Yes all this can be done using ansible. Playbooks can be written to automate patch selection in your patch management system. Then your servers can be organised into groups. And then issued patch task. In between you can post in pre and post tasks Get Outlook for iOS

Re: [ansible-project] Can i install ansible as a non root user?

2021-05-13 Thread Wei-Yen Tan
As soon as I used pip I just typed ansible-playbook and it's there Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Smahane Sent: Thursday, May 13, 2021 11:22:23 AM To: Ansible Project Subject: Re:

Re: [ansible-project] Can i install ansible as a non root user?

2021-05-12 Thread Wei-Yen Tan
That comes with ansible-playbook does it not? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Smahane Sent: Thursday, May 13, 2021 10:14:57 AM To: Ansible Project Subject: Re: [ansible-project] Can i install

Re: [ansible-project] Cannot create multiple VMs

2021-04-13 Thread Wei-Yen Tan
ct: Re: [ansible-project] Cannot create multiple VMs I am sorry I don't know what is that. I am new to this using it for my final project. Should i send you my playbook and variable file again? On Tue, Apr 13, 2021 at 4:12 PM Wei-Yen Tan mailto:weiyen@gmail.com>> wrote: You

Re: [ansible-project] Cannot create multiple VMs

2021-04-13 Thread Wei-Yen Tan
roject@googlegroups.com Subject: Re: [ansible-project] Cannot create multiple VMs No problem Sir, i need help, it is wearing me out. Thank you On Tue, Apr 13, 2021 at 4:08 PM Wei-Yen Tan mailto:weiyen@gmail.com>> wrote: Ah my apologies. Late in the night. Just saw the changed. Needs to

Re: [ansible-project] Cannot create multiple VMs

2021-04-13 Thread Wei-Yen Tan
t;, "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Required field "summary" not pro

Re: [ansible-project] Cannot create multiple VMs

2021-04-13 Thread Wei-Yen Tan
2021 1:07 AM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] Cannot create multiple VMs On 4/13/21 3:05 PM, Wei-Yen Tan wrote: > Looks like vm created > In check mode? I really don't think so. Regards Racke > Get Outlook for iOS <htt

Re: [ansible-project] Cannot create multiple VMs

2021-04-13 Thread Wei-Yen Tan
Looks like vm created Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of rebecca acheampong Sent: Wednesday, April 14, 2021 1:03:13 AM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] Cannot create

Re: [ansible-project] Help to do MSI automation

2021-03-27 Thread Wei-Yen Tan
Can yoy define by what you mean by public properties? Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Somasundaram R Sent: Saturday, March 27, 2021 5:10:26 PM To: Ansible Project Subject: [ansible-project] Help to

Re: [ansible-project] Ansible Without Python?

2021-02-24 Thread Wei-Yen Tan
_ From: ansible-project@googlegroups.com on behalf of Jean-Yves LENHOF Sent: Thursday, February 25, 2021 9:38:02 AM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] Ansible Without Python? Le 24/02/2021 à 21:21, Wei-Yen Tan a écrit : Well on the client side you can r

Re: [ansible-project] Ansible Without Python?

2021-02-24 Thread Wei-Yen Tan
Well on the client side you can run any language. Ansible uses the shebang on the task module to execute the script. I have even written a custom module that runs powershell on a linux client. You could run bash. As long as you output json object ansible will just execute and return it back.

Re: [ansible-project] Ansible Without Python?

2021-02-24 Thread Wei-Yen Tan
Technically I think you could run ansible in any language. But there would have to be a deep rethink on how to reproduce what had already been created in the python scripts that make up ansible 'workflow'. there is a lot of moving parts in the backend that we don't see. Get Outlook for

Re: [ansible-project] Mount file share based on variable in loop

2021-02-18 Thread Wei-Yen Tan
tags: os_directory_file_settings } - { role: configure_mnt , when: mount_list is defined , tags: linux_mnt_settings } On Fri, 19 Feb 2021 at 13:24, Tim Shubitz wrote: > > > On Feb 18, 2021, at 4:40 PM, Wei-Yen Tan wrote: > > > > I actually do this very thing. I have a role tha

Re: [ansible-project] Mount file share based on variable in loop

2021-02-18 Thread Wei-Yen Tan
With a loop var* Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Tim Shubitz Sent: Friday, February 19, 2021 11:36:33 AM To: Ansible Project Subject: [ansible-project] Mount file share based on variable in loop

Re: [ansible-project] Mount file share based on variable in loop

2021-02-18 Thread Wei-Yen Tan
I actually do this very thing. I have a role that just loops through a var inside the role. That role just uses the Mount task. With a lip. The role runs off the var exists. I can dig up the structure of it may help. On my phone now. Get Outlook for iOS

Re: [ansible-project] Win_copy Not working

2021-02-16 Thread Wei-Yen Tan
Sounds like you are hitting the double hop issue with winrm Get Outlook for iOS From: 'Praveen Kumar Singh' via Ansible Project Sent: Tuesday, February 16, 2021 9:32:28 PM To: Ansible Project Subject: [ansible-project] Win_copy Not

Re: [ansible-project] Windows module error with ansible.legacy.setup PowerShell -NoProfile -NonInteractive?

2021-01-11 Thread Wei-Yen Tan
The supported process is through winrm. Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Ryan Nix Sent: Tuesday, January 12, 2021 1:46:55 PM To: Ansible Project Subject: Re: [ansible-project] Windows module error

Re: [ansible-project] Windows module error with ansible.legacy.setup PowerShell -NoProfile -NonInteractive?

2021-01-11 Thread Wei-Yen Tan
Why do you put that in just out of interest Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Ryan Nix Sent: Tuesday, January 12, 2021 1:10:47 PM To: Ansible Project Subject: Re: [ansible-project] Windows module

Re: [ansible-project] Ansible Tower/AWX Credential Management

2021-01-10 Thread Wei-Yen Tan
I have done this exact task before for a custom credential. We can talk over there Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Yantram Cloud Sent: Sunday, January 10, 2021 9:04:45 PM To:

Re: [ansible-project] Ansible Setup

2021-01-06 Thread Wei-Yen Tan
I have done this. If you explain the steps you did we can go from there Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Ompragash Sent: Thursday, January 7, 2021 2:18:59 AM To: ansible-project@googlegroups.com

Re: [ansible-project] Re:

2021-01-04 Thread Wei-Yen Tan
Have you run the configureforansiblleremoting.ps1 script to set up the certificates? 5986 requires you to set up the winrm listener to be set up with a cert Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Deepak

Re: [ansible-project] delete all files under a directory

2020-12-28 Thread Wei-Yen Tan
scroll to the bottom.. it has your example: Using the Ansible find module to search for files/folder - My Daily Tutorials <https://www.mydailytutorials.com/using-ansible-find-module-search-filesfolder/> On Tue, 29 Dec 2020 at 16:15, Wei-Yen Tan wrote: > > Use the find module to li

Re: [ansible-project] delete all files under a directory

2020-12-28 Thread Wei-Yen Tan
gs directory > file: > path: /app/logs/ > state: absent > > Best Regards, > Reneesh K > > > On Mon, Dec 28, 2020 at 9:02 PM Wei-Yen Tan wrote: > >> Even better. Use file module >> >> On Tue, 29 Dec 2020 at 4:01 PM Tej Singh Rana >

Re: [ansible-project] delete all files under a directory

2020-12-28 Thread Wei-Yen Tan
Even better. Use file module On Tue, 29 Dec 2020 at 4:01 PM Tej Singh Rana wrote: > use command or shell module > > > regards, > > > On Tue, Dec 29, 2020 at 8:26 AM Reneesh K wrote: > >> How do I delete all files under a directory? >> >> -- >> You received this message because you are