Re: [ansible-project] Copy condition based on presence in playbook templates folder

2020-09-01 Thread LUCA CARANGELO
Hi Vladimir, I'm going to test it immediately ! Thank you very much , I really appreciate it. Il giorno mar 1 set 2020 alle ore 19:12 Vladimir Botka ha scritto: > On Tue, 1 Sep 2020 09:21:06 -0700 (PDT) > LUCA CARANGELO wrote: > > > if in my playbook tamplates folder there is a file named : >

[ansible-project] Ansible 2.10.0 beta 1

2020-09-01 Thread Toshio Kuratomi
Hi all- For all those wanting to test the next version of Ansible, we're happy to announce that Ansible 2.10.0 beta1 is now available on PyPI! Ansible 2.10.0b1 pulls in the ansible-base-2.10.1 (presently rc2) package via a dependency and includes a range of Ansible Collections. The Ansible 2.10 P

Re: [ansible-project] Getting syntax error

2020-09-01 Thread 'Ramu Mathi' via Ansible Project
Singh, We need roles here and we are calling the same way for others and they are working well. Only for this host configuration I am getting that error. Can we deep debug on this? On Wed, Sep 2, 2020 at 1:03 AM Kundan Singh wrote: > As per my understanding roles will not require and specific t

Re: [ansible-project] Help with async tasks.

2020-09-01 Thread Martin Etcheverry
well other option (i used only once) is run the shell command with gnu parallel . its pretty amazing! but i pretty stiff learning curve. maybe you could , give it a chance. best regards! El mar., 1 sept. 2020 a las 4:19, Guannan Sun () escribió: > Thank you for your response. > I've tried to add

Re: [ansible-project] "Tuning the External Inventory Script"

2020-09-01 Thread Claude Robitaille
I have the exact same need; I want to target a single host, for which I provide a label to the play as an extra-args. I do not need to pull the whole list of hosts in my inventory. It takes too much time and is unnecessary. Just having my inventory script called with the host label is enough to

[ansible-project] find_output with filter

2020-09-01 Thread Nagesh sheregar
Hi Team, i would like to see only GREEN/RED in out put, can you please let me know how i can filter it? Playbook: - name: sddc health command: /opt/vmware/sddc-support/sos --health-check register: find_output - debug: var: find_output = Output:

[ansible-project] Permission issue with become

2020-09-01 Thread maheshn...@gmail.com
Having the same issue here: Any help is appreciated. Using ansible --version ansible 2.5.2 config file = /etc/ansible/ansible.cfg python version = 2.6.6 *site.yml* - name: Live patch hosts: all become: yes tasks: - name: Update the packages using uptrack shell: 'uptrack-up

[ansible-project] Host SSH key not recognized when trying to SSH into remote repository using Ansible playbook

2020-09-01 Thread Erick Sun
Host SSH key not recognized when trying to SSH into remote repository using Ansible playbook. Remote repository was verified to have the correct SSH key from host, but still wouldn't recognize host when trying to clone from the repository. Ran Ansible on 15 hosts, 13 were successful, 1 failed

[ansible-project] Host is unreachable by SSH while running Ansible playbook

2020-09-01 Thread Erick Sun
Host is unreachable by SSH while running Ansible playbook. Ran Ansible playbook on 15 hosts, 13 were provisioned successfully, 1 was unreachable even though they were configured the same. Here is the actual error received. Can anyone help? Thx fatal: [Host]: UNREACHABLE! => {"changed": false,

[ansible-project] Multiple ansible-vault encrypted ssh private keys

2020-09-01 Thread William Dossett
Hi, I’ve been wrangling around this all afternoon. First of all, is it ok to have two ansible-vault encrypted files (containing ssh private keys) with the same password and use them in one playbook? I ask because when I try to use a second one, the first one seems to stop working. My first pl

Re: [ansible-project] Getting syntax error

2020-09-01 Thread Kundan Singh
As per my understanding roles will not require and specific tags - hosts: "{{ groups['all'][0] }}" gather_facts: no become: true vars_files: - roles: - abc Or - "{{ and role name }}" On Tue, Sep 1, 2020, 9:02 PM 'Ramu Mathi' via Ansible Projec

Re: [ansible-project] copy file to host not in inventory

2020-09-01 Thread Mike Eggleston
Could use ansible-playbook -i Mike > On Sep 1, 2020, at 14:13, William Dossett wrote: > >  > In the end I just used command: scp seems to work adequately > > Regards > Bill > > From: "ansible-project@googlegroups.com" > on behalf of "william...@gmail.com" > Reply-To: "ansible-project

[ansible-project] pass module args as extra variable

2020-09-01 Thread Nick-H
Hi, in order to debug a playbook , I need to pass some value to a module_arg at run time . I thought using extra-variables but it doesn't work, args still show 'null' The module is elasticache and I need to try a run with hard_modify = true . But this is not part as one of the existing variab

Re: [ansible-project] copy file to host not in inventory

2020-09-01 Thread William Dossett
In the end I just used command: scp seems to work adequately Regards Bill From: "ansible-project@googlegroups.com" on behalf of "william...@gmail.com" Reply-To: "ansible-project@googlegroups.com" Date: Tuesday, September 1, 2020 at 9:56 AM To: Ansible Project Subject: [ansible-project] cop

Re: [ansible-project] Copy condition based on presence in playbook templates folder

2020-09-01 Thread Vladimir Botka
On Tue, 1 Sep 2020 09:21:06 -0700 (PDT) LUCA CARANGELO wrote: > if in my playbook tamplates folder there is a file named : > configuration--HOST001 > then copy module with : > src : "./templates/configuration--{{ inventory_hostname }}" > dst: "/tmp/ > > if ./templates/configuration--HOST001 do

[ansible-project] Re: ERROR! A worker was found in a dead state

2020-09-01 Thread spiro.m...@mcgill.ca
I got the error a few weeks ago. Turned out the server was running out of memory. On Monday, August 31, 2020 at 4:35:31 PM UTC-4 jbor...@gmail.com wrote: > > Looks like you are running on macOS based on the paths in your > ansible-playbook --version output. There is a known problem with runn

[ansible-project] Copy condition based on presence in playbook templates folder

2020-09-01 Thread LUCA CARANGELO
I need to copy a configuration file to hosts based on its custom presence in playbook templates folder. As example : CONSIDER TO APPLY TO AN INVENTORY My hostname is HOST001 {{ inventory_hostname }} if in my playbook tamplates folder there is a file named : configuration--HOST001 then copy mo

[ansible-project] copy file to host not in inventory

2020-09-01 Thread william...@gmail.com
Hi, sorry, I can't quite get my head around the last bit of my playbook. I have a playbook that is doing ssh key rotations - it is pretty much all working other than once it has generated the keys and used authorized_keys module to put them on the hosts in the inventory, I want to copy the keys

Re: [ansible-project] Getting syntax error

2020-09-01 Thread 'Ramu Mathi' via Ansible Project
Hi Singh, This is my configuration and it invokes the below tasks. - hosts: "{{ groups['all'][0] }}" gather_facts: no become: true vars_files: - roles: - { role: */*, tags: ['**'] } --- - name: add vhosts shell: "docker exec rmq-ha rabbitmqctl

[ansible-project] Re: Ping Role for clients to ping all IP from HOST_VAR files?

2020-09-01 Thread 'Fatos Dervisi' via Ansible Project
This should be the solution but it does not work, because I dont gather facts, I want to scan thru my inventroy: - name: "Ping all Linux VMs" hosts: servers gather_facts: no tasks: - debug: msg: "{{ hostvars['{{ item }}']*.ansible_host *}}" with_items: "{{

Re: [ansible-project] Getting syntax error

2020-09-01 Thread Kundan Singh
Hi , There is a syntax issue in the jinja2 template When you are defining hosts there should be space in variable mention in the line Synatx should appear like below hosts: "{{ abc }}" Regards Kundan singh On Tue, Sep 1, 2020, 3:13 PM 'Ramu Mathi' via Ansible Project < ansible-project@googleg

Re: [ansible-project] Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588

2020-09-01 Thread Stefan Hornburg (Racke)
On 9/1/20 2:12 PM, erdivay singhal wrote: > This is the only error show after running the yaml > So how does your playbook look like? What's the complete output of the task in error? Regards Racke > On Tue, Sep 1, 2020, 5:26 PM Stefan Hornburg (Racke) > wrote:

Re: [ansible-project] Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588

2020-09-01 Thread erdivay singhal
This is the only error show after running the yaml On Tue, Sep 1, 2020, 5:26 PM Stefan Hornburg (Racke) wrote: > On 9/1/20 1:17 PM, erdivay singhal wrote: > > Hi Team, > > Any idea for the below mentioned error > > > > Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588 > > No idea

Re: [ansible-project] Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588

2020-09-01 Thread Stefan Hornburg (Racke)
On 9/1/20 1:17 PM, erdivay singhal wrote: > Hi Team, >  Any idea for the below mentioned error  > > Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588 No idea due to missing context. Regards Racke > > -- > You received this message because you are subscribed to the Goog

[ansible-project] Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588

2020-09-01 Thread erdivay singhal
Hi Team, Any idea for the below mentioned error Error:a bug: 'utf8' codec can't decode byte 0xa0 in position 588 -- 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 emai

[ansible-project] Getting syntax error

2020-09-01 Thread 'Ramu Mathi' via Ansible Project
I am getting the following the error with my config ERROR! The field 'hosts' has an invalid value, which includes an undefined variable. The error was: list object has no element 0 The error appears to be in '/Users/ramumathi/Desktop/workspace/RMQ/ansible-rmq-ha/playbook.yml': line 91, co

[ansible-project] playbook error ssh v1

2020-09-01 Thread Jaime Jaca
I would like to know how to run a playbook on a machine with ssh v1. Thank you. -- 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...@g

[ansible-project] New Ansible releases 2.8.15 and 2.9.13

2020-09-01 Thread Rick Elrod
Hi all- we're happy to announce that the general release of Ansible 2.8.15 and 2.9.13 are now available! How do you get it? -- $ pip install ansible==2.8.15 --user or $ pip install ansible==2.9.13 --user The tar.gz of the releases can be found here: * 2.8.15 https://releases.

Re: [ansible-project] Help with async tasks.

2020-09-01 Thread Guannan Sun
Thank you for your response. I've tried to add 'strategy: free' in my playbook, however it seems not work as my expectation. I think it may because there is only single host in my scenario, while 'strategy: free' works well in scenario of multi hosts and multi tasks. We're now trying to run mul