Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-15 Thread Jorge Rúa
I guess the issue now is that you are trying to use connection plugin local to the newly created vm, which I assume is a windows machine. Then you should override connection mechanism for those tasks dealing with windows or as you suggested spliting the playbook into two, one dealing with vcenter

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-15 Thread Abhijot Singh Kathuria
Hey Dick, Changed the localhost for the domain task to the host itself. No help, still getting the same error: fatal: [localhost -> ans-dv4-test1]: FAILED! => { "changed": false, "module_stderr": "\u001b[91mParserError:

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread Brian Coca
A simple solution is to 'alter' the failure condition: - name: stop postgresql.service from systemd if running service: name: postgresql.service state: stopped become: yes register: psql_result failed_when: psql_result is failed and 'Could not find the

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread Stefan Hornburg (Racke)
On 15/10/2021 16:16, dulhaver via Ansible Project wrote: On 10/15/2021 1:37 PM dulhaver via Ansible Project wrote: On 10/15/2021 1:01 PM Stefan Hornburg (Racke) wrote: On 15/10/2021 12:40, dulhaver via Ansible Project wrote: On 10/15/2021 12:07 PM Stefan Hornburg (Racke) wrote:

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread dulhaver via Ansible Project
> On 10/15/2021 1:37 PM dulhaver via Ansible Project > wrote: > > > > On 10/15/2021 1:01 PM Stefan Hornburg (Racke) wrote: > > > > > > On 15/10/2021 12:40, dulhaver via Ansible Project wrote: > > >> On 10/15/2021 12:07 PM Stefan Hornburg (Racke) wrote: > > >> > > >> > > >> On

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread Stefan Hornburg (Racke)
On 15/10/2021 13:37, dulhaver via Ansible Project wrote: On 10/15/2021 1:01 PM Stefan Hornburg (Racke) wrote: On 15/10/2021 12:40, dulhaver via Ansible Project wrote: On 10/15/2021 12:07 PM Stefan Hornburg (Racke) wrote: On 15/10/2021 12:04, dulhaver via Ansible Project wrote: On

Re: [ansible-project] Template expansion

2021-10-15 Thread Vladimir Botka
On Fri, 15 Oct 2021 07:43:59 -0400 Mauricio Tavares wrote: > When you use the template module, where does it do all the jinjaness > (variable expansion, loop, etc): in the host you are running ansible > from (server?) or the one you are applying it to (client)? The *template* is completed at

[ansible-project] Template expansion

2021-10-15 Thread Mauricio Tavares
When you use the template module, where does it do all the jinjaness (variable expansion, loop, etc): in the host you are running ansible from (server?) or the one you are applying it to (client)? -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread dulhaver via Ansible Project
> On 10/15/2021 1:01 PM Stefan Hornburg (Racke) wrote: > > > On 15/10/2021 12:40, dulhaver via Ansible Project wrote: > >> On 10/15/2021 12:07 PM Stefan Hornburg (Racke) wrote: > >> > >> > >> On 15/10/2021 12:04, dulhaver via Ansible Project wrote: > On 10/15/2021 11:41 AM Stefan

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread Stefan Hornburg (Racke)
On 15/10/2021 12:40, dulhaver via Ansible Project wrote: On 10/15/2021 12:07 PM Stefan Hornburg (Racke) wrote: On 15/10/2021 12:04, dulhaver via Ansible Project wrote: On 10/15/2021 11:41 AM Stefan Hornburg (Racke) wrote: On 15/10/2021 11:20, dulhaver via Ansible Project wrote: I

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread dulhaver via Ansible Project
> On 10/15/2021 12:07 PM Stefan Hornburg (Racke) wrote: > > > On 15/10/2021 12:04, dulhaver via Ansible Project wrote: > >> On 10/15/2021 11:41 AM Stefan Hornburg (Racke) wrote: > >> > >> > >> On 15/10/2021 11:20, dulhaver via Ansible Project wrote: > >>> > >>> I am trying to install

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread Stefan Hornburg (Racke)
On 15/10/2021 12:04, dulhaver via Ansible Project wrote: On 10/15/2021 11:41 AM Stefan Hornburg (Racke) wrote: On 15/10/2021 11:20, dulhaver via Ansible Project wrote: I am trying to install postgresql via a playbook and want to make sure the service is not running prior installation on

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread dulhaver via Ansible Project
> On 10/15/2021 11:41 AM Stefan Hornburg (Racke) wrote: > > > On 15/10/2021 11:20, dulhaver via Ansible Project wrote: > > > > I am trying to install postgresql via a playbook and want to make sure the > > service is not running prior installation on the target (rhel7/8 & > > debian10)

Re: [ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread Stefan Hornburg (Racke)
On 15/10/2021 11:20, dulhaver via Ansible Project wrote: I am trying to install postgresql via a playbook and want to make sure the service is not running prior installation on the target (rhel7/8 & debian10) machines. However my task below     - name: stop postgresql.service from systemd

[ansible-project] tell 'service' module to continue with playbook, if service isn't found

2021-10-15 Thread dulhaver via Ansible Project
I am trying to install postgresql via a playbook and want to make sure the service is not running prior installation on the target (rhel7/8 & debian10) machines. However my task below - name: stop postgresql.service from systemd if running service: name: postgresql.service state: stopped #