Re: [ansible-project] nested with_items

2020-06-17 Thread Dick Visser
I usually handle this by looping over include_tasks. So each level has its own file with tasks, and includes another task to 'go down' one level so to speak. On Wed, 17 Jun 2020 at 22:15, Nicholas Britton wrote: > I have a senerio where i think a nested with_items would work , but i am > not

[ansible-project] nested with_items

2020-06-17 Thread Nicholas Britton
I have a senerio where i think a nested with_items would work , but i am not seeing any examples where there are multiple keys. Today i have a with_items that looks like this: - name: Include vmware workflow for Tag Setups include_tasks: tasks/vmworkflow_assetgroup_create_tags_include.yml

[ansible-project] Re: trying to enable winrm over https on new VM

2020-06-17 Thread Dave York
If you're building from a template, you could bake the winrm changes into the template - you could also use the vmware customization to run the COnfigureRemotingForAnsible.ps1 script I link below See this page for some in depth on setting things up:

Re: [ansible-project] How to Segregate Inventory file and Group Variable to provide Ansible User name and password

2020-06-17 Thread Stefan Hornburg (Racke)
On 6/17/20 5:07 PM, ditun dhar wrote: > Guys, > > I am new in Ansible and need some help. I am in need of segregating my > inventory file (which will change continuously > based on another script output) with credential file. However Ansible > username, password and admin password will be same

[ansible-project] win_mapped_drive fails with become(runas) and ansible_become_pass var defined

2020-06-17 Thread Дмитрий Витенберг
Hi everyone, I'm trying to mount smb share on windows host (win10 pro) that requires authentication using *win_mapped_drive/win_credential* Here is the playbook sample (based on docs example) - name: Create mapped drive with credentials and save the username and password block: - name:

[ansible-project] How to Segregate Inventory file and Group Variable to provide Ansible User name and password

2020-06-17 Thread ditun dhar
Guys, I am new in Ansible and need some help. I am in need of segregating my inventory file (which will change continuously based on another script output) with credential file. However Ansible username, password and admin password will be same or static. I want to create a group variable file

[ansible-project] trying to enable winrm over https on new VM

2020-06-17 Thread Tony Wong
I am clining VM with the vmware_guest module. it works fine and join domain. but I need to enable winrm over https. is there way to do this from the runonce or predeployment tasks? I cant even copy a script over since winrm over https is not enabled -- You received this message because you

Re: [ansible-project] Needs to Write a Playbook

2020-06-17 Thread Rafael Tomelin
Hi Rama, You can create playbook/role simples: 1) create regex and split server from number "{{ ansible_hostname.split('server')[1] }}" 2) Check if the number is divisor per 2; {{ variable_number % 2 }} 3) if divisor 2, copy script1 else copy script 2 file: src: script{{ var01 }} On Mon,

Re: [ansible-project] win_shell, kerberos and credential delegation

2020-06-17 Thread Luca 'remix_tj' Lorenzetto
Hi Jordan, On Thu, May 14, 2020 at 11:00 PM Jordan Borean wrote: > > It really depends on how the 'DB.Migrator.exe' binary is set to use > credentials over a network path. If it's trying to find a credential in the > user's DPAPI cred store then Kerberos with credential delegation is not >

Re: [ansible-project] offending line appears to be state: directory

2020-06-17 Thread Md Asiful Haque
Can you try wih this. And if there is any error please the details error you can try with -vv flag while running the playbook. # If the mount directory doesn't already exist it is created - name: Create the mount directory   file:     path: "{{ mount_dir_path }}"     state: directory     mode: