Differences between revisions 1 and 2
Revision 1 as of 2020-08-25 05:18:09
Size: 238
Editor: PieterSmit
Comment:
Revision 2 as of 2020-09-20 08:29:10
Size: 796
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:

== Ansible ping host ==
 * ping/test connectivity, create inventory file, and run module ping. {{{
vi inventory.file
[mygrp]
myserver

ansible mygrp -i inventory.file -m ping
}}}
== Ansible error's ==
 * 2020-09 [WARNING]: Unable to parse <file> as an inventory source
   * Debug with {{{
ansible --list-hosts all -i <file> -vvv
}}}
     * error seen "Skipping due to inventory source not existing or not being readable by the current user"
     * Apparently ansible tries to parse inventory files with different plugins, ini, yaml, etc.

Ansible

  • DevOps automation framework.

  • What makes Ansible unique is not host agent, all done through ssh.

Ansible ping host

  • ping/test connectivity, create inventory file, and run module ping.

    vi inventory.file
    [mygrp]
    myserver
    
    ansible mygrp -i inventory.file -m ping

Ansible error's

  • 2020-09 [WARNING]: Unable to parse <file> as an inventory source

    • Debug with

      ansible --list-hosts all -i <file> -vvv
      • error seen "Skipping due to inventory source not existing or not being readable by the current user"
      • Apparently ansible tries to parse inventory files with different plugins, ini, yaml, etc.

Ansible (last edited 2023-09-06 00:52:04 by PieterSmit)