[ansible-project] how-to split file group_vars ?

2018-12-15 Thread Michele Salerno
I have this file for config zones bind dns. Ho-to split this file for single zone? https://github.com/mikysal78/nnxx-bind-server/blob/master/group_vars/dns-server/bind Thanks. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fr

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Jordan Borean
If you are seeing this issue in AWX you are probably coming across bubble wrap https://docs.ansible.com/ansible-tower/3.1.4/html/administration/proot_func_variables.html. Bubblewrap limits what directories a playbook can run and IIRC it’s default is the project directory of the playbook itself.

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Ankit Vashistha
Hello Kai, Unfortunately, I am still getting the error. The current Playbook: *- hosts: Windows* * gather_facts: false* * tasks:* *- name: Ensure Service status is running and startup mode set to Automatic* * win_service:* *name: MSSQLSERVER* *state: started* *

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Kai Stian Olstad
On Saturday, 15 December 2018 15:33:57 CET Ankit Vashistha wrote: > I tried the following modified playbook: > > *- hosts: Windows* > * gather_facts: false* > * tasks:* > *- name: Ensure Service status is running and startup mode set to > Automatic* > * win_service:* > *name: MS

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Ankit Vashistha
I tried the following modified playbook: *- hosts: Windows* * gather_facts: false* * tasks:* *- name: Ensure Service status is running and startup mode set to Automatic* * win_service:* *name: MSSQLSERVER* *state: started* *start_mode: auto* *- name: Send J

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Kai Stian Olstad
On Saturday, 15 December 2018 13:37:17 CET Ankit Vashistha wrote: > I have one more query though. What is the exact different between > local_action* and delegate_to ?* Nothing. I prefer using delegate_to since it's then easy to add or remove the delegation. If using local_action more change need

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Ankit Vashistha
I have one more query though. What is the exact different between local_action* and delegate_to ?* *Thanks and Regards,* *Ankit Kumar Sharma **Mobile +91-9717144596* On Sat, Dec 15, 2018 at 5:53 PM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Saturday, 15 December 2018 13:18

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Ankit Vashistha
Thanks a lot Kai for the quick help. I will try this. *Thanks and Regards,* *Ankit* On Sat, Dec 15, 2018 at 5:53 PM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Saturday, 15 December 2018 13:18:49 CET Ankit Vashistha wrote: > > I have got the following playbook: > > > > --- >

Re: [ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Kai Stian Olstad
On Saturday, 15 December 2018 13:18:49 CET Ankit Vashistha wrote: > I have got the following playbook: > > --- > - hosts: Windows > > tasks: > - name: Ensure Service status is running and startup mode set to > Automatic > win_service: > name: MSSQLSERVER > state: star

[ansible-project] How to run a localhost python script in a play defined for a different host group?

2018-12-15 Thread Ankit Vashistha
I have got the following playbook: --- - hosts: Windows tasks: - name: Ensure Service status is running and startup mode set to Automatic win_service: name: MSSQLSERVER state: started start_mode: auto ... I want to run a Python script on the *localhost* i.e.,