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.
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*
*
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
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
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
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
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:
> >
> > ---
>
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
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.,