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
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
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:
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
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:
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
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
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,
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
>
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:
10 matches
Mail list logo