How to keep secret data in playbook?

devquora
devquora

Posted On: Feb 22, 2018

 

If you want to keep secret data in your ansible content and still share it publicly, then you can use Vault in playbooks. If you’re using –v (verbose) mode, and don’t want to show the results, then following command can be used:


  name: secret task

  shell: /usr/bin/do_something --value={{ secret_value }}

  no_log: True
 

This can be used to hide sensitive data from others.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Ansible Interview Questions

    What is Ansible?

    Ansible is an open source automation platform which can help you with configuration management, task automation and appl..

    Ansible Interview Questions

    Talk about Ansible architecture.

    Ansible works on ‘agentless architecture’. It works by connecting to your nodes and pushes out Ansible modules to th..

    Ansible Interview Questions

    List some advantages of using Ansible.

    Unlike other configuration management system, Ansible is the most sought after software applications these days. it off..