installl a bebian 8.1 from a computer to anpther computer

19 views
Skip to first unread message

Thierry Boibary-Granier

unread,
Feb 20, 2016, 2:05:22 AM2/20/16
to Ansible Project

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.

Benjamin Redling

unread,
Feb 20, 2016, 3:51:30 AM2/20/16
to ansible...@googlegroups.com
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
--
FSU Jena | JULIELab.de/Staff/Benjamin+Redling.html
vox: +49 3641 9 44323 | fax: +49 3641 9 44321

Brian Coca

unread,
Feb 20, 2016, 12:13:49 PM2/20/16
to ansible...@googlegroups.com
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.


----------
Brian Coca

Benjamin Redling

unread,
Feb 20, 2016, 12:35:40 PM2/20/16
to ansible...@googlegroups.com
On 2016-02-20 18:13, Brian Coca wrote:
> 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?

Brian Coca

unread,
Feb 20, 2016, 12:55:45 PM2/20/16
to ansible...@googlegroups.com
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.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages