What does the -k option in the Ansible playbook command indicate?

Prepare for the Cisco Certified DevNet Associate Exam. Use flashcards and multiple choice questions to boost your knowledge, with hints and explanations to guide you. Ace your exam effectively!

The -k option in the Ansible playbook command indicates that it prompts for the connection password. This feature is particularly useful when you are connecting to managed nodes that require a password for authentication rather than using SSH keys. By using the -k option, Ansible will ask you to enter the password interactively when the playbook is executed, allowing for secure input of sensitive information without hardcoding it into scripts or configuration files.

Other options may relate to connection methods or logging levels, but they do not correctly describe the purpose of the -k option. The -k option specifically addresses the need for username/password login scenarios, thereby enhancing the flexibility of Ansible in various environments where password authentication is necessary.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy