Re: [ansible-project] Docker Compose Module Issue - Trying to Stop Some Services

2020-05-08 Thread Stefan Hornburg (Racke)
On 5/9/20 5:32 AM, Kernel Panic wrote: > Hello there, hope this is the right place to ask. > > Im trying to accomplish  the following using docker_compose module, the idea > is, I have a compose file which runs > some services and I want to stop some of them but not all, I know beforehands >

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-08 Thread Stefan Hornburg (Racke)
On 5/9/20 7:36 AM, Marc Haber wrote: > On Sat, May 02, 2020 at 04:12:11PM +0200, Stefan Hornburg (Racke) wrote: >> On 5/2/20 3:35 PM, Marc Haber wrote: >>> On Tue, Apr 28, 2020 at 09:48:23AM +0200, Stefan Hornburg (Racke) wrote: On 4/27/20 10:12 AM, Marc Haber wrote: > Let's assume I have

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-08 Thread Marc Haber
On Sat, May 02, 2020 at 04:12:11PM +0200, Stefan Hornburg (Racke) wrote: > On 5/2/20 3:35 PM, Marc Haber wrote: > > On Tue, Apr 28, 2020 at 09:48:23AM +0200, Stefan Hornburg (Racke) wrote: > >> On 4/27/20 10:12 AM, Marc Haber wrote: > >>> Let's assume I have a service that can listen on different

Re: [ansible-project] If unreachable - stop giving Failed out and move to next host

2020-05-08 Thread Dick Visser
This is exactly what the dynamic inventory is meant for. Basically if queries the aws api to fetch a list of the instances that are up, and provides that as the inventory. https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#inventory-script-example-aws-ec2 On Fri, 8

[ansible-project] Docker Compose Module Issue - Trying to Stop Some Services

2020-05-08 Thread Kernel Panic
Hello there, hope this is the right place to ask. Im trying to accomplish the following using docker_compose module, the idea is, I have a compose file which runs some services and I want to stop some of them but not all, I know beforehands the ones that I do not want to stop, so am trying to

Re: [ansible-project] Need ideas how to reflect progress os ansible job in web page

2020-05-08 Thread Jean-Yves LENHOF
Hi, Use ARA ? https://ara.recordsansible.org/ Regards, JYL Le 08/05/2020 à 14:39, Meir Yanovich a écrit : hello all i have a simple web page that invokes the ansible job via command line as high level idea how can i reflect some progress from the ansible job to the web page can i set

Re: [ansible-project] If unreachable - stop giving Failed out and move to next host

2020-05-08 Thread Work-Hard
Hi Dick, I just to make sure on your suggestion that I have over 100 hosts that brought up and down dynamically. My goal is that the tasks should stop reporting HUGE errors in the output and we save them to be reviewed by external companies. Is it possible ? On Friday, May 8, 2020 at 11:16:31

[ansible-project] Is there any slack ansible community channel ?

2020-05-08 Thread vinod devops
Hi Friends, Thanks, Vinod -- 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 the web

[ansible-project] Re: Windows service recovery on failure with ansible?

2020-05-08 Thread vinod devops
Thank you so much Jordan, I found these options, - error_control - failure_actions - failure_actions_on_non_crash_failure - failure_command - failure_reboot_msg - failure_reset_period_sec - load_order_group - pre_shutdown_timeout_ms - required_privileges -

[ansible-project] Re: Windows service recovery on failure with ansible?

2020-05-08 Thread vinod devops
Thank you so much Hawkesworth On Thursday, May 7, 2020 at 3:15:18 PM UTC-5, J Hawkesworth wrote: > > I thought someone had added recovery actions to win_service module, but > maybe that PR never got finished, or I am confused with dependent services. > > I think you would have to use script

Re: [ansible-project] Range function in Ansible?

2020-05-08 Thread Vladimir Botka
On Fri, 8 May 2020 08:49:14 -0700 (PDT) Albert Short wrote: > Scenario: > Variables I am using > access_hostname: > - name: dariusz_access1 > nodeid_access: 1001 > from_port: '04' > vlanid: > - 201-204,500-510 > podid: 1 > int_mode: regular >

[ansible-project] Problem copying a file from a network drive to a another directory (Windows 10)

2020-05-08 Thread Jordan Borean
You cannot access mapped drives through WinRM. You need to use the full UNC path. Also you need to be aware of the credential delegation problem when accessing network paths when using WinRM. You can connect with CredSSP, or Kerberos with delegation or use become on the task to bypass that. --

[ansible-project] aireos_config with prompts

2020-05-08 Thread Scott Fella
Just wanted to follow up on this. Is it possible to maybe not use the aireos_config module but another module or does Ansible do checks to only allow certain modules? Thanks, -Scott -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] If unreachable - stop giving Failed out and move to next host

2020-05-08 Thread Dick Visser
You could use the ec2.py dynamic inventory to at least target the instances that are powered on. It's more elegant than ignoring errors etc On Fri, 8 May 2020 at 17:45, Work-Hard wrote: > Brian if I remove ignore_unreachable=true. The playbook halts to continue > the playbook. > > > > > On

Re: [ansible-project] Range function in Ansible?

2020-05-08 Thread Dick Visser
This works for me: --- - hosts: localhost connection: local gather_facts: no vars: vlan_range: 1-9,100-103,201-204,500-507,600-604,1000-1003 tasks: - set_fact: vlans: "{{ vlans|default([]) | union(lookup('sequence', item.split('-')|first + '-' + item.split('-')|last +

[ansible-project] Questions about collections and issue tracking

2020-05-08 Thread Nick Kakouros
My questions: - Should I close issues and PRs on ansible's main project and open new ones on collections' issue trackers? - Will there be a massive issue/PR migration from ansible's main project to the new collections? -- You received this message because you are subscribed to the Google

[ansible-project] Problem copying a file from a network drive to a another directory (Windows 10)

2020-05-08 Thread Roni Warken
Hi all. As a beginner, one of the first playbooks I am developing is to copy a file from a network drive to the windows host. [warken1@ansible-controller windows-projects]$ ansible --version ansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path =

Re: [ansible-project] Loop range format quick question

2020-05-08 Thread Dave Zarei
Thanks Stefan, used the following and it's working like you said: loop: "{{range (0, myvariable | int +1) | list}}" On Tuesday, May 5, 2020 at 8:53:49 AM UTC-4, Stefan Hornburg (Racke) wrote: > > On 5/5/20 2:36 PM, Dave Zarei wrote: > > HI, > > > > quick question about how to use a variable

[ansible-project] Range function in Ansible?

2020-05-08 Thread Albert Short
Can anyone tell me there is a solution I can use to do the same thing a Python range function in Ansible? Scenario: Variables I am using access_hostname: - name: dariusz_access1 nodeid_access: 1001 from_port: '04' vlanid: - 201-204,500-510 podid: 1

Re: [ansible-project] If unreachable - stop giving Failed out and move to next host

2020-05-08 Thread Work-Hard
Brian if I remove ignore_unreachable=true. The playbook halts to continue the playbook. On Friday, May 8, 2020 at 7:47:19 AM UTC-7, Brian Coca wrote: > > if you want to stop that ... dont use ignore_unreachable=true, the > 'default' behaviour is to remove the host from play and not try >

Re: [ansible-project] If unreachable - stop giving Failed out and move to next host

2020-05-08 Thread Work-Hard
They are either off or unreachable over VPN. This is from production. On Thursday, May 7, 2020 at 3:28:33 PM UTC-7, Dick Visser wrote: > > Out of interest - what is the reason they are unreachable? > > On Fri, 8 May 2020 at 00:17, Work-Hard > > wrote: > > > > Hi, > > Is it possible for the

Re: [ansible-project] If unreachable - stop giving Failed out and move to next host

2020-05-08 Thread Brian Coca
if you want to stop that ... dont use ignore_unreachable=true, the 'default' behaviour is to remove the host from play and not try executing subsequent tasks (that of course fail again). -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups

[ansible-project] Need ideas how to reflect progress os ansible job in web page

2020-05-08 Thread Meir Yanovich
hello all i have a simple web page that invokes the ansible job via command line as high level idea how can i reflect some progress from the ansible job to the web page can i set some callbacks or any other idea? I'm not using API I'm running playbook as Linux cli . Thanks -- You received

Re: [ansible-project] how to run the python script from ansible to Windows 2019?

2020-05-08 Thread Dhilipsingh G
On Friday, May 8, 2020 at 5:55:14 PM UTC+5:30, Dick Visser wrote: > > On Fri, 8 May 2020 at 13:39, Dhilipsingh G > wrote: > > >> - What do the relevant inventory/tasks/playbooks/code/variables look > like. > > You forgot the most important information ^^^ > playbook : > --- - name:

Re: [ansible-project] how to run the python script from ansible to Windows 2019?

2020-05-08 Thread Dick Visser
On Fri, 8 May 2020 at 13:39, Dhilipsingh G wrote: >> - What do the relevant inventory/tasks/playbooks/code/variables look like. You forgot the most important information ^^^ -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- You received this message because you are

Re: [ansible-project] how to run the python script from ansible to Windows 2019?

2020-05-08 Thread Dhilipsingh G
i am getting result when i run the bat file manually on windows machine , On Friday, May 8, 2020 at 5:09:46 PM UTC+5:30, Dhilipsingh G wrote: > > > hi > > - What goal you are trying to achieve > I need to run the python script on windows machine by ansible > - How you are doing this. > i have

Re: [ansible-project] how to run the python script from ansible to Windows 2019?

2020-05-08 Thread Dhilipsingh G
hi - What goal you are trying to achieve I need to run the python script on windows machine by ansible - How you are doing this. i have python script on windows machine then i write the bat file for run the python script , python installed on "F:\\Python27\\ArcGISx6410.7\python.exe . my bat

Re: [ansible-project] how to run the python script from ansible to Windows 2019?

2020-05-08 Thread Dick Visser
To answer your question more information is needed. Could you please describe clearly all of the below: - What goal you are trying to achieve. - How you are doing this. - What problems you encounter. - Which commands did you run, and what actual output did you get (copied as plain text - not as

Re: [ansible-project] How does Ansible handle IP address duplication?

2020-05-08 Thread Dick Visser
Yup, since ansible uses SSH, you can use whatever SSH uses to overcome these issues, in this case jumphosts. This is tried and true so should work well. On Fri, 8 May 2020 at 08:08, Boris Mühmer wrote: > > That's just the common "ssh jumphost" pattern. > I haven't tried it, yet... but it looks

[ansible-project] how to map network drive by ansible?

2020-05-08 Thread Dhilipsingh G
I am trying to map the drive , drive has been mapped but status as unavailable .Any idea ? -- 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] how to run the python script from ansible to Windows 2019?

2020-05-08 Thread Dhilipsingh G
hi Team , i am getting error while run the python script from ansible to windows 2019. kindly help me to fix the issue error : "Traceback (most recent call last):", " File \"deploy.py\", line 866, in ", "DatabaseCreator().main()", " File \"deploy.py\", line

Re: [ansible-project] How does Ansible handle IP address duplication?

2020-05-08 Thread Boris Mühmer
That's just the common "ssh jumphost" pattern. I haven't tried it, yet... but it looks like I have soon. After a quick search I found this information: