Ansible Interactive Input Prompts

Ansible Logo

Ansible Interactive Input Prompts

vars_prompt

---
- hosts: all
  vars_prompt:

    - name: username
      prompt: What is your username?
      private: no

    - name: password
      prompt: What is your password?

  tasks:

    - name: Print a message
      debug:
        msg: 'Logging in as {{ username }}'
  • https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html