Re: [ansible-project] Re: Windows machine not pinging.

2020-10-13 Thread Thanh Nguyen Duc
You are using domain account or local account? Vào Th 2, 12 thg 10, 2020 vào lúc 17:18 uday kiran đã viết: > But the credentials are correct. > > On Saturday, 10 October 2020 at 05:25:37 UTC+5:30 jbor...@gmail.com wrote: > >> The ping and win_ping modules aren't doing an ICMP ping, they are >>

Re: [ansible-project] Ansible Nmap

2020-10-13 Thread Mayang Sari
Hello all Sorry I just curious, is this normal result for plugin nmap? ansible-inventory --list --yaml -i test.nmap.yml - ansible-inventory 2.9.12 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/oss/.ansible/plugins/modules', '/usr/share/ansible/plugins/mo

[ansible-project] Template lookup failure triggered by rescue in role??

2020-10-13 Thread rodo...@gmail.com
I have a role which pushes updates to GitHub Enterprise. Every now and then the push fails, so I enclosed this push in a block/rescue with a rescue task to retry after a short random length pause. The result is success, mostly. However whenever the rescue task is triggered a later task in the p

[ansible-project] Failing host (or better still - a group of hosts) after one login failure.

2020-10-13 Thread Go Away
I have (again ;->) a quite unusual situation. I have a bunch of hosts to which I connect with ansible to perform some tasks. The problem is that they are not mine alone and the authentication is done with password and is based on some central directory service. So I have a shared account for som

RE: [ansible-project] Failing host (or better still - a group of hosts) after one login failure.

2020-10-13 Thread Stuart Lowe
Can you not put an ssh key on the host? a single account can have multiple keys From: ansible-project@googlegroups.com On Behalf Of Go Away Sent: 13 October 2020 12:50 To: Ansible Project Subject: [ansible-project] Failing host (or better still - a group of hosts) after one login failure. I h

Re: [ansible-project] Failing host (or better still - a group of hosts) after one login failure.

2020-10-13 Thread Go Away
I know. I use key-based authentication widely but unfortunately, in this case, it's not available for me. There are organization-wide password policies and so on so I'm stuck with rotating passwords. On Tuesday, October 13, 2020 at 2:19:19 PM UTC+2 Stu wrote: > Can you not put an ssh key on the

RE: [ansible-project] Failing host (or better still - a group of hosts) after one login failure.

2020-10-13 Thread Stuart Lowe
So a bit of error handling? https://docs.ansible.com/ansible/2.5/user_guide/playbooks_error_handling.html so just do a simple command like echo a message with become before anything else in your play and if that fails register it as a failure and stop the play? From: ansible-project@googlegrou

Re: [ansible-project] Failing host (or better still - a group of hosts) after one login failure.

2020-10-13 Thread Go Away
Seems a good path. Will probably have to dig a bit deeper not to fail tasks for other servers for which I have another authentication scheme but at first glance seems a good idea. Thanks! On Tuesday, October 13, 2020 at 2:44:26 PM UTC+2 Stu wrote: > So a bit of error handling? > > > > > https

[ansible-project] Digital Ocean Droplet facts

2020-10-13 Thread Yantram Cloud
Hi All, Just curious to know,. Is there any specific reason why digital ocean droplet facts are not avaialble as part of the digital ocean collection. Is there been any other approach which is being followed to retrieve the servers running on DC ? Thanks, jayant@yantram.cloud -- You receiv

[ansible-project] Missing collection error

2020-10-13 Thread Eoghan O'Hara
Hi all, I wish to use the ansible.posix.mount module in my project, and have been attempting to include the installation of this collection in code. To do this I have a *requirements.yml* file: --- roles: - src: geerlingguy.packer_rhel - src: geerlingguy.packer-debian - src: geerlingguy.n

Re: [ansible-project] Missing collection error

2020-10-13 Thread Matt Martz
Items from `requirements.yml` are not auto installed during runtime, you would have to explicitly install them manually via the `ansible-galaxy` CLI tool, prior to running `ansible-playbook` On Tue, Oct 13, 2020 at 11:34 AM Eoghan O'Hara wrote: > Hi all, > > I wish to use the ansible.posix.mount

Re: [ansible-project] Missing collection error

2020-10-13 Thread Eoghan O'Hara
Thank you for the response Matt. I'll add a line in my pre-ansible shell script to install the collection On Tuesday, October 13, 2020 at 5:43:22 PM UTC+1 Matt Martz wrote: > Items from `requirements.yml` are not auto installed during runtime, you > would have to explicitly install them manuall

Re: [ansible-project] Missing collection error

2020-10-13 Thread Eoghan O'Hara
I added a line in my pre-ansible script and it seems to have installed the collection: virtualbox-iso: Installing 'ansible.posix:1.1.1' to '/root/.ansible/collections/ansible_collections/ansible/posix' virtualbox-iso: | ==> virtualbox-iso: Provisioning with Ansible... But I still get th

Re: [ansible-project] ERROR! the field 'hosts' is required but was not set

2020-10-13 Thread vinoth kumar
Are you using ansible tower/awx or in command line? How your inventory file looks like? //vinoth On Mon 12. Oct 2020 at 21:45, Subhash Chandra Ranga wrote: > --- > - name: install nginx with the my own php format > hosts: webservers > remote_user: ubuntu > become: yes > > tasks: > > -

[ansible-project] How treat errors in tasks

2020-10-13 Thread Rafael Tomelin
Hi, I have the function that creates a database and after creating the DB I inserted the access information in a VAULT, the problem that sometimes inconsistent information is passed and the database creation TASK returns an error. I would like to know if when I have an error before canceling the

Re: [ansible-project] How treat errors in tasks

2020-10-13 Thread Dick Visser
I would register the result of that task and use that to decide what to do next. Also use failed_when later to override what is really a failure. On Tue, 13 Oct 2020 at 23:27, Rafael Tomelin wrote: > Hi, > > I have the function that creates a database and after creating the DB I > inserted the a

[ansible-project] Ansible-2.10.1 has been released

2020-10-13 Thread Toshio Kuratomi
Hi all- **Important:** If you are upgrading from Ansible 2.9.x or older, please see the `How to get it` section for an important limitation. We're happy to announce that the ansible-2.10.1 package is now available! This update contains bugfixes and new, backwards compatible features in the conta

Re: [ansible-project] ERROR! the field 'hosts' is required but was not set

2020-10-13 Thread Subhash Chandra Ranga
Hej thank you for response the cause of error is due to handlers they are not placed correctly after I have done that it works fine 😊 On Tue, Oct 13, 2020, 22:37 vinoth kumar wrote: > > Are you using ansible tower/awx or in command line? > How your inventory file looks like? > //vinoth > On Mon