[ansible-project] Re: Swapping credentials

2020-02-29 Thread Dave York
I can't tell what changes, but while ansible is trying to connect, it throws this error in the event log: Log Name: System Event ID: 10111 Level: Warning Source: Microsoft-Windows-WinRM Description: User authentication using Basic Authentication scheme failed. Unexpected error received from

Re: [ansible-project] File operations failing on shared file system #67410

2020-02-29 Thread Vladimir Botka
On Sat, 29 Feb 2020 13:13:10 -0800 (PST) Stephen Gevers wrote: > I opened an issue > ... I created a playbook where two hosts ... > > [...] >2. remove the file from host1 using a when option to limit the action to >the desired host

[ansible-project] Re: Swapping credentials

2020-02-29 Thread Dave York
Further troubleshooting makes this seem like it has something to do with time (GPO applying maybe?) I can run another job with the same connection to staging_domain and eventually it starts working. I'm still trying to figure it out, ill post back here if I find anything On Saturday,

[ansible-project] Re: Swapping credentials

2020-02-29 Thread Dave York
Thanks Jordan, I think you kicked me in the right direction, but still missing something. I'm following your guidance somewhat, but I'm adding the inventory within the playbook instead of in the inventory: - name: add new host staging_domain to inventory add_host: name:

[ansible-project] File operations failing on shared file system #67410

2020-02-29 Thread Stephen Gevers
I opened an issue that was closed because the developer believes the problem is a race condition that can't be dealt with in code. I created a playbook where two hosts that both mount a shared file system test for the existence of a file. The

[ansible-project] Re: Windows updates found but not installed

2020-02-29 Thread Dan Linder
I'd suggest removing the category_names and server_selection fields and see if the missing patches are applied. I don't do Windows patching, but it might be that the "sql server sp2 gdr" is in a different category or server selection. The "category_names" looks like it is a dynamic list that

[ansible-project] Re: "ONE" inventory question

2020-02-29 Thread Claudia de Luna
HI, You are certainly correct that adding your host file to each repository is not a solution. As I see it you have a few options: 1. Create an environment repository with your host file and your cfg file and anything else you might need and clone your playbook repositories underneath that

Re: [ansible-project] SSL Certificate or Passwordless WinRM setup

2020-02-29 Thread Stuart Lowe
You can install open ssh on windows now Sadly still in beta last I looked but I tested it and could shh from my sensible server to the windows deter with an ssh key and run power shell commands etc Stu On 28 Feb 2020, at 16:32, FloodBarboy wrote:  Hello, I have been racking my brain for

Re: [ansible-project] variable undefined?

2020-02-29 Thread Vladimir Botka
On Sat, 29 Feb 2020 00:48:45 -0800 (PST) Dave York wrote: > - hosts: localhost > connection: local > gather_facts: yes > > tasks: > - name: Generate a temporary random password for template/os customization > set_fact: > randopass: > "{{ lookup('password', '/dev/null

Re: [ansible-project] variable undefined?

2020-02-29 Thread Jean-Yves LENHOF
Hi, Variable are for a host You use "localhost" and "staging" unless the group staging contains only localhost, yes you will have some undefined variable for the different hosts in your staging group Regards, JYL Le 29/02/2020 à 09:48, Dave York a écrit : I'm confused why I'm getting

[ansible-project] variable undefined?

2020-02-29 Thread Dave York
I'm confused why I'm getting a 'variable undefined' error with this playbook, anyone have any idea? - hosts: localhost connection: local gather_facts: yes tasks: - name: Generate a temporary random password for template/os customization set_fact: randopass: "{{