[ansible-project] Re: Cisco MDS | nxos_zone_zoneset

2020-06-11 Thread Jesse Lyon
Opened an issue with Cisco on github. https://github.com/Cisco-SAN/MDS_Ansible_Modules/issues/9 On Wednesday, June 10, 2020 at 3:22:43 PM UTC-4, Jesse Lyon wrote: > > I think I found the offending "Check" thats causing my headache. > > # Step1: execute sh

[ansible-project] Re: Cisco MDS | nxos_zone_zoneset

2020-06-10 Thread Jesse Lyon
= mmode.group(1) if msession: self.session = msession.group(1) if self.session != "none": self.locked = True if msz: self.sz = msz.group(1) def isLocked(self): return self.locked On

Re: [ansible-project] Cisco MDS | nxos_zone_zoneset

2020-06-10 Thread Jesse Lyon
Updated the modules for MDS to most current release via github. No success. On Tuesday, June 9, 2020 at 3:39:21 PM UTC-4, Jesse Lyon wrote: > > It's in the OG post. > > I can't get it to post /w the code, so here we go. > https://pastebin.com/ziMcfTSt > > On Tuesday, June

Re: [ansible-project] Cisco MDS | nxos_zone_zoneset

2020-06-09 Thread Jesse Lyon
It's in the OG post. I can't get it to post /w the code, so here we go. https://pastebin.com/ziMcfTSt On Tuesday, June 9, 2020 at 3:28:13 PM UTC-4, oxido A wrote: > > And What happens when you -The admin execute : > > show zone status ?? > > > > El mar., 9 jun. 2020

[ansible-project] Cisco MDS | nxos_zone_zoneset

2020-06-09 Thread Jesse Lyon
Alrighty So I've run into a bit of a head scratcher New MDS deployment, right? all of 0 customers running across it so far, 2 admins poking at it, one being myself trying to get Ansible playbooks to play nicely with this new pair. Playbook functions on old MDS's without an incident. that is

Re: [ansible-project] Re: win_acl and remote fileshares

2020-04-07 Thread Jesse Lyon
Current permissions on file path I've got 1500+ volumes off of this current filer that are all using NTFS permissions from this same domain as well without issue. I can assign them through set-acl through powershell just using a different path as the ACL fomatter through get-acl and assigning it

[ansible-project] Re: win_acl and remote fileshares

2020-04-06 Thread Jesse Lyon
Hi again Jordan, Those solutions absolutely did work for me, and have solved an issue elsewhere i was having as well, so thanks again. I do have a question about the module further. Namely, how the heck do I force this to assign domain groups? fatal: [HOST.DOMAIN.net]: FAILED! => {

[ansible-project] Re: win_acl and remote fileshares

2020-04-03 Thread Jesse Lyon
Hey Jordan, How's that different than what I'm doing here? become: yes become_method: runas become_user: "sa_ansi...@domain.net" Should I be using a different method? On Friday, April 3, 2020 at 2:39:37 PM UTC-4, Jordan Borean wrote: > > This is because of the double hop

[ansible-project] win_acl and remote fileshares

2020-04-03 Thread Jesse Lyon
win_acl and remote fileshares https://docs.ansible.com/ansible/latest/modules/win_acl_module.html#win-acl-module Using the WIN_ACL module, is it possible to manage file system permissions on a remote UNC path? Making the assumption that it is, so long as your user has permissions to do that

[ansible-project] win_acl and remote fileshares

2020-04-03 Thread Jesse Lyon
https://docs.ansible.com/ansible/latest/modules/win_acl_module.html#win-acl-module Using the WIN_ACL module, is it possible to manage file system permissions on a remote UNC path? Making the assumption that it is, so long as your user has permissions to do that operation I'm having consistent

[ansible-project] Re: Calling powershell function via Ansible

2020-03-06 Thread Jesse Lyon
become_method: runas become_user: "userna...@domain.net" I really appreciate the assist. On Thursday, March 5, 2020 at 5:05:13 PM UTC-5, Jesse Lyon wrote: > > Jordan, > > The methodology I was following was "if it worked through ise, why's this > not pass it prope

[ansible-project] Re: Calling powershell function via Ansible

2020-03-05 Thread Jesse Lyon
Jordan, The methodology I was following was "if it worked through ise, why's this not pass it properly?", I knew I was doing something wrong, I just didn't know what yet. I'll give this a shot in the morning and report back. After 12 punches on the card of "Jordan saves the day" do you earn a

[ansible-project] Calling powershell function via Ansible

2020-03-05 Thread Jesse Lyon
I have a function, it works perfectly if I run it directly from my target server. powershell.exe -ExecutionPolicy ByPass -file "C:\Scripts\USERNAME\dfsadd_func.ps1"; dfsadd -junction Apps -obj_name toast -prd_vserver PROD -dr_vserver DR -prd_state online -dr_state offline With success seen

[ansible-project] Re: win_dns_record

2020-02-19 Thread Jesse Lyon
I need to not ansible on no sleep. -- 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 email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on

Re: [ansible-project] Does anyone have an Interesting Ansible demo idea for a talk?

2020-02-19 Thread Jesse Lyon
I demoed it internally to folks trying to get more buy-in with the following Create NetApp volume Create NetApp Dr volume Mirror it Mount Dr side Present share through DFS (created function for PS to do it manually via ansible command module) Create AD security groups Assign permissions to share

[ansible-project] win_dns_record

2020-02-19 Thread Jesse Lyon
OK, Am I missing something? or is this module requiring you to run it against the DNS server directly? I know I though powershell normally can define the DNS server I wish to execute against, but this module doesn't look like I can tweak that any, without adding the feature manually. How

Re: [ansible-project] When var1 == "yes" and var2 == "no"

2020-02-11 Thread Jesse Lyon
Perfect! I didn't realize the indentation had to be outside the module parameter, the example I was using was poorly written it seems. I appreciate the help Stefan! -- Jess On Tuesday, February 11, 2020 at 12:51:14 PM UTC-5, Stefan Hornburg (Racke) wrote: > > On 2/11/20 6:44 PM, Jess

[ansible-project] Re: win_domain_group_membership

2020-02-11 Thread Jesse Lyon
I fixed it from the above error, PEBKAC. Updated the PR :) On Monday, February 10, 2020 at 4:28:05 PM UTC-5, Jesse Lyon wrote: > > The full traceback is: > Could not add member(s) to one or more ADGroup. > At line:82 char:9 > + Add-ADPrincipalGroupMembership -Identity $grou

[ansible-project] When var1 == "yes" and var2 == "no"

2020-02-11 Thread Jesse Lyon
So, I'm having fits with when conditionals matching strings No matter what I do, it applies each conditional, the combination of the variables doesn't seem to count for ... anything. what the heck am I doing wrong? additionally, is there a better way to do this? - name: H - Set FIM Flag -

[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jesse Lyon
er(s) to one or more ADGroup." } On Monday, February 10, 2020 at 4:22:50 PM UTC-5, Jesse Lyon wrote: > > My bad on linking to the wrong issue :) > > I've pulled it down and am giving it a shot now, will have results and > comment on the PR if successful... so far I'm fi

[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jesse Lyon
ld not add member(s) to one or more ADGroup." } On Monday, February 10, 2020 at 4:22:50 PM UTC-5, Jesse Lyon wrote: > > My bad on linking to the wrong issue :) > > I've pulled it down and am giving it a shot now, will have results and > comment on the PR if successful... so far

[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jesse Lyon
My bad on linking to the wrong issue :) I've pulled it down and am giving it a shot now, will have results and comment on the PR if successful... so far I'm fighting the woes of a stripped down dev domain. Thanks again Jordan. On Monday, February 10, 2020 at 2:03:12 PM UTC-5, Jordan Borean

[ansible-project] win_domain_group_membership

2020-02-10 Thread Jesse Lyon
Hey Folks, I've got a couple of specific questions about win_domain_group_membership. I can find where support was backported to 2.8, and where its listed as supported in 2.9 (same post: https://github.com/ansible/ansible/issues/59829 ) But I can't for the life of me figure out how to convince

[ansible-project] Re: win_domain_group using AD LDS?

2020-02-05 Thread Jesse Lyon
2-ps On Wednesday, February 5, 2020 at 11:36:27 AM UTC-5, Jesse Lyon wrote: > > https://pastebin.com/Zst497QW > > On Wednesday, February 5, 2020 at 9:51:14 AM UTC-5, Jesse Lyon wrote: >> >> Attempting to implement group creation/management playbooks via a jump >&g

[ansible-project] Re: win_domain_group using AD LDS?

2020-02-05 Thread Jesse Lyon
https://pastebin.com/Zst497QW On Wednesday, February 5, 2020 at 9:51:14 AM UTC-5, Jesse Lyon wrote: > > Attempting to implement group creation/management playbooks via a jump box > running AD LDS nets us the below error > > The play itself isn't overly complicated... *yet.* >

[ansible-project] win_domain_group using AD LDS?

2020-02-05 Thread Jesse Lyon
Attempting to implement group creation/management playbooks via a jump box running AD LDS nets us the below error The play itself isn't overly complicated... *yet.* > ##CREATING RW GROUPS > tasks: > - name: Verify we connect for debug > win_shell: hostname > - name: H - Create

[ansible-project] Re: Having issues running win_domain_group

2020-02-04 Thread Jesse Lyon
Install the RSAT role on your ansible target and that'll take care of your issue. On Monday, February 3, 2020 at 8:03:08 PM UTC-5, Craig Simon wrote: > > Hey all, > > i've been using Ansibe with Linux for years, but now I have a need to use > it to build out some Windows boxes and I am running