How to auto accept terms while installing packages with Ansible?

前端 未结 2 1221
青春惊慌失措
青春惊慌失措 2021-01-20 03:41

While installing pkgs Ansible fails, because there is a need to accept licensing terms.

How to auto accept terms through ansible-playbook?



        
2条回答
  •  不知归路
    2021-01-20 04:09

    There is no universal method for "packages".

    For Oracle Java add a task before calling apt:

    - debconf:
        name: oracle-java8-installer
        question: shared/accepted-oracle-license-v1-1
        value: true
        vtype: select
    

提交回复
热议问题