Hi all,

I am trying to run a ansible playbook through preseed file. everything is
going good. but  when i try to run ansible-playbook via in-target command
via preseed it ends with an error here is the syslog output of preseed
installation

 preseed: running preseed command preseed/late_command: in-target apt-get
update; in-target apt-get -y upgrade; in-target apt-get -y dist-upgrade;
in-target apt-get -y install sudo less ssh ansible htop openssh-server
wget; in-target --pass-stdout /usr/bin/mkdir /opt/newfolder; in-target
--pass-stdout wget -P /opt/newfolder http://10.51.100.35/install.yml;
in-target --pass-stdout ansible-playbook /opt/newfolder/install.yml;

Oct  4 08:01:44 log-output: dpkg-divert: warning: diverting file
'/sbin/start-stop-daemon' from an Essential package with rename is
dangerous, use --no-rename
Oct  4 08:01:44 in-target: Ign:1 cdrom://[Official Debian GNU/Linux Live
10.6.0 xfce 2020-09-26T13:15] buster InRelease
Oct  4 08:01:44 in-target: Err:2 cdrom://[Official Debian GNU/Linux Live
10.6.0 xfce 2020-09-26T13:15] buster Release
Oct  4 08:01:44 in-target:   Please use apt-cdrom to make this CD-ROM
recognized by APT. apt-get update cannot be used to add new CD-ROMs
Oct  4 08:01:45 in-target: Hit:3 http://http.us.debian.org/debian buster
InRelease
Oct  4 08:01:45 in-target: Hit:4 http://security.debian.org/debian-security
buster/updates InRelease
Oct  4 08:01:45 in-target: Hit:5 http://http.us.debian.org/debian
buster-updates InRelease
Oct  4 08:01:46 in-target: Reading package lists...
Oct  4 08:01:47 in-target:
Oct  4 08:01:47 in-target: E
Oct  4 08:01:47 in-target: :
Oct  4 08:01:47 in-target: The repository 'cdrom://[Official Debian
GNU/Linux Live 10.6.0 xfce 2020-09-26T13:15] buster Release' does not have
a Release file.
Oct  4 08:01:47 in-target:
Oct  4 08:01:47 log-output: dpkg-divert: warning: diverting file
'/sbin/start-stop-daemon' from an Essential package with rename is
dangerous, use --no-rename
Oct  4 08:01:47 in-target: Reading package lists...
Oct  4 08:01:47 in-target:
Oct  4 08:01:47 in-target: Building dependency tree...
Oct  4 08:01:48 in-target:
Oct  4 08:01:48 in-target: Reading state information...
Oct  4 08:01:48 in-target:
Oct  4 08:01:48 in-target: Calculating upgrade...
Oct  4 08:01:48 in-target:
Oct  4 08:01:48 in-target: The following package was automatically
installed and is no longer required:
Oct  4 08:01:48 in-target:   libjsoncpp1
Oct  4 08:01:48 in-target: Use 'apt autoremove' to remove it.
Oct  4 08:01:48 in-target: The following packages will be upgraded:

Any help will be highly appreciated.

Thanks,
yousuf

Reply via email to