Hi  Team,

how  to create  customized  inventory [/etc/ansible/hosts] in such  away it
should  ping  both the  fqdn  and also  with  the server ip


ansible -m ping SERVER IP  and  also ansible -m ping FQDN

Regards
Kannappan M




On Wed, Nov 17, 2021 at 10:10 PM <ansible-project@googlegroups.com> wrote:

> ansible-project@googlegroups.com
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/ansible-project/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> Today's topic summary
> View all topics
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/ansible-project/topics>
>
>    - Access expiration date for a user
>    <#m_2427777870402823640_group_thread_0> - 5 Updates
>    - Error AnsiballZ_setup.py line 27
>    <#m_2427777870402823640_group_thread_1> - 1 Update
>    - Can't find error in jinja2 expression
>    <#m_2427777870402823640_group_thread_2> - 3 Updates
>    - Feedback Wanted: New table design for Ansible module documentation
>    <#m_2427777870402823640_group_thread_3> - 3 Updates
>
> Access expiration date for a user
> <http://groups.google.com/group/ansible-project/t/bfff9a306001b4d0?utm_source=digest&utm_medium=email>
> "lift...@gmail.com" <lifte...@gmail.com>: Nov 16 09:16AM -0800
>
> I'm using the freeipa APIs in a playbook to get a user's LDAP information.
> I can get the krbpasswordexpiration fine:
>
> "krbpasswordexpiration": [
> {
> "__datetime__": "20220207191401Z"
> }
> ...more
> <http://groups.google.com/group/ansible-project/msg/11299fe36e06f9?utm_source=digest&utm_medium=email>
> Todd Lewis <uto...@gmail.com>: Nov 16 08:15PM -0800
>
> - name: KrbPasswordExpiration date/time demo
> hosts: localhost
> vars:
> user_show:
> json:
> result:
> result:
> krbpasswordexpiration: [
> { ...more
> <http://groups.google.com/group/ansible-project/msg/114d8ed05caa2b?utm_source=digest&utm_medium=email>
> "lift...@gmail.com" <lifte...@gmail.com>: Nov 17 05:11AM -0800
>
> Thanks for that! I can now reference the __datetime__ member, but now I'm
> trying to convert that to a datetime object in the format of YYmmdd, but I
> get an error. Here's how I'm setting the ...more
> <http://groups.google.com/group/ansible-project/msg/116ad195e82c76?utm_source=digest&utm_medium=email>
> Dick Visser <dick.vis...@geant.org>: Nov 17 05:19PM +0100
>
> > to_datetime('%Y%m%d') }}\"}), and could not be converted to an dict.The
> > error was: unconverted data remains: 191401Z\n\n
>
> > Any ideas?
>
> You need to specify the exact matching format. ...more
> <http://groups.google.com/group/ansible-project/msg/11751edf6e217f?utm_source=digest&utm_medium=email>
> Dick Visser <dick.vis...@geant.org>: Nov 17 05:24PM +0100
>
> Just some practical tip, if you find yourself needing to isolate things
> like some jinja/ansible filters, it can be quickly done using ad hoc:
>
> dick.visser@GA0267 ~$ ansible -m debug -i localhost, ...more
> <http://groups.google.com/group/ansible-project/msg/11756588bc8f8a?utm_source=digest&utm_medium=email>
> Back to top <#m_2427777870402823640_digest_top>
> Error AnsiballZ_setup.py line 27
> <http://groups.google.com/group/ansible-project/t/33826f550c81c3bf?utm_source=digest&utm_medium=email>
> Jagannath Pattar <jagannath.pat...@gmail.com>: Nov 17 02:16AM -0800
>
> Hi Brian,
>
> Well till no many experiments failed from my side.
> Where I should raise a bug? Could you please provide the link?
>
> Thanks,
> Jagannath
>
> On Friday, November 5, 2021 at 3:02:57 PM UTC+1 ...more
> <http://groups.google.com/group/ansible-project/msg/1161491cd0653d?utm_source=digest&utm_medium=email>
> Back to top <#m_2427777870402823640_digest_top>
> Can't find error in jinja2 expression
> <http://groups.google.com/group/ansible-project/t/f1e41b5d99c992d9?utm_source=digest&utm_medium=email>
> Axel Rau <axel....@chaos1.de>: Nov 16 07:50PM +0100
>
> Hi all,
>
> in a template, I have:
>
> data_directory = '{{ {{ i.data }}/{{ postgresql_version }}/data }}‘
>
> but I’m getting:
> "AnsibleError: template error while templating string: expected token
> ...more
> <http://groups.google.com/group/ansible-project/msg/112ec43cd4c6e9?utm_source=digest&utm_medium=email>
> "Stefan Hornburg (Racke)" <ra...@linuxia.de>: Nov 16 08:32PM +0100
>
> On 16/11/2021 19:50, Axel Rau wrote:
> > loop:
> > - '{{ i.data }}/{{ postgresql_version }}/data/pg_hba.conf‘
>
> > What am I doing wrong?
>
> Hello Axel,
>
> you certainly can't nest the ...more
> <http://groups.google.com/group/ansible-project/msg/1131088c0b75f8?utm_source=digest&utm_medium=email>
> Axel Rau <axel....@chaos1.de>: Nov 17 11:05AM +0100
>
> > Am 16.11.2021 um 20:32 schrieb Stefan Hornburg (Racke) <ra...@linuxia.de
> >:
>
> > you certainly can't nest the curly braces.
>
> Oh yes, you are right. (-:
>
> Thanks, Axel
> ---
> PGP-Key: CDE74120 ☀ ...more
> <http://groups.google.com/group/ansible-project/msg/1160b37542135a?utm_source=digest&utm_medium=email>
> Back to top <#m_2427777870402823640_digest_top>
> Feedback Wanted: New table design for Ansible module documentation
> <http://groups.google.com/group/ansible-project/t/bf021521a270ba1e?utm_source=digest&utm_medium=email>
> "samc...@redhat.com" <samcc...@redhat.com>: Nov 16 10:47AM -0800
>
> Hi folks -
>
> We are experimenting with changing the module documentation tables that
> appear on docs.ansible.com to make them more compatible with smaller
> screen
> sizes. This also impacts how it ...more
> <http://groups.google.com/group/ansible-project/msg/112e8daf513a1f?utm_source=digest&utm_medium=email>
> Alex Wanderley <alex.wander...@edmonton.ca>: Nov 16 11:57AM -0700
>
> Hello,
>
> The "After example" link is not showing the "Choices/Defaults" column on my
> computer screen anymore.
>
> FYI,
>
> Alex
>
> On Tue, Nov 16, 2021 at 11:47 AM samc...@redhat.com ...more
> <http://groups.google.com/group/ansible-project/msg/112f1fb773268e?utm_source=digest&utm_medium=email>
> "samc...@redhat.com" <samcc...@redhat.com>: Nov 16 01:06PM -0800
>
> That is part of the change and why we would like feedback. The information
> is now incorporated in the comments column. Also there are other examples
> in the linked PR for how this proposed change ...more
> <http://groups.google.com/group/ansible-project/msg/11362964e0b17f?utm_source=digest&utm_medium=email>
> Back to top <#m_2427777870402823640_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/ansible-project/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to ansible-project+unsubscr...@googlegroups.com.
>

-- 
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 visit 
https://groups.google.com/d/msgid/ansible-project/CABxrqnGkKOXygK6y1%3DQozpuv8csFv3Lh7AxpczEbpzvH211cSg%40mail.gmail.com.

Reply via email to