installl a bebian 8.1 from a computer to anpther computer

Hi,

i have a desktop pc with Debain 8.2 and another pc with completly
different caracteristics. i’d like to copy the entire disk of this last
pc to the first pc to have a Debain configuration complete.

Is’it possible with Ansible?

Many thanks
T.

For that case you are better off with different solutions.
I would have a look at "clonezilla" or "relax and recover".

As long as you are not switching the architecture (e.g. amd64 <-> arm)
there rarely is a problem.
Linux / Debian is not locked to a certain hardware.

Sometimes you want things like
/etc/udev/rules.d/70-persistent-net.rules
edited.
But it should run even w/o that.

/Benjamin

you might get into trouble with UUIDs though for both network and disks. This was much simpler before those started being used for interface assignments and mounts.

What do you mean by UUIDs for disks?
Ok: all my partitions are mounted in /etc/fstab by UUID, but they get
cloned too.
I would rather clone the whole installation and run some shell/ansible
scripts afterwards to make those site-wide unique again -- if needed at all!

I really like ansible but I thought there are better tools for cloning a
whole installation if one missed the opportunity to do it with
kickstart/preseed/FAI/... + ansible from the beginning.

(Network) booting a rescue install and scripting ansible to dd/clone/...
seemed a bit like brute forcing a use case. Did I miss an elegant
solution _with_ ansible?

/Benjamin

No, and I don’t think Ansible should really not do this itself. It should use other existing tools to do this that already are ‘good’ at it.

There are no current modules that help you with this aside from shell.