Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Example

Comment

Playbook execution

ansible all -u admin -k -m ping

username is part of the command line arguments.

Password will be requested interactively

ansible all -m ping --extra-vars "ansible_user=admin ansible_password=indenirocks123"

Both username and password are provided in command line.

ansible-playbook /usr/share/indeni-knowledge/stable/automation/playbooks/checkpoint/get_uptime_low_reason.yml -e "ssh_username=indeni ssh_password=indeni123 ip_address=10.11.94.200 device=1.1.1.1"

ansible-playbook -vvv /usr/share/indeni-knowledge/stable/automation/playbooks/checkpoint/get_uptime_low_reason.yml -e "ssh_username=indeni ssh_password=indeni123 ip_address=10.11.94.200 device=1.1.1.1"

Verbose output - very good for troubleshooting