เมื่อดำเนินการและapt-get update; apt-get upgrade -yบนเซิร์ฟเวอร์ฉันพบข้อความ:
Setting up sudo (1.8.16-0ubuntu1.5) ...
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D/Z) [default=N] ?
Setting up ubuntu-minimal (1.361.1) ...
ฉันรู้ว่าdebconfสามารถใช้เพื่อกำหนดค่าแพ็คเกจเช่น MySQL เพื่อตอบคำถามเพื่อแจ้ง
ฉันควรใช้โปรแกรม / โมดูล / ฟังก์ชั่น / ฯลฯ ของ Linux ใดเพื่อเตรียมคำตอบสำหรับพรอมต์นี้
ฉันอยากรู้วิธีแก้ปัญหาที่ดำเนินการผ่าน Ansilbe หากมีอยู่จริง นอกเหนือจากสคริปต์ BASH
โปรดทราบ: การแจกแจงของฉันทั้งหมดทำผ่าน IaC และระบบอัตโนมัติจึงเป็นสิ่งสำคัญ