Ansible: Migrate Transcoder NIC Configurations From CentOS 6 to Centos 7
I wrote this little Ansible script from scratch in order to backup 3 X network interface configurations from CentOS 6 Transcoders and move them over to CentOS 7.
It really doesn’t matter what transcoder software you would run yourself as long as it has multiple NICs and you are upgrading the server from CentOS 6 to Cent0S 7.
The Trick: Changing interface name between CentOS 6 and 7
I know what you are thinking being the extremely knowledgeable engineer that you are. The interfaces go from ‘eth0‘ to ‘enp6s0‘ in this case when upgrading from CentOS 6 to 7. This Ansible accounts for that.
NOTE: Because of the new naming conventions on CentOS 7 the interface could not be named exactly enp6s0 like mine, so make sure to check this.
Also with Repo Backup
The Ansible script I use to pull down the NIC configs also pulls the repos.
This is just in case I have an internal machine that uses its own repos.
Just One Ansible Gotcha With this.
Make sure to run the following on CentOS 7 for the the Selinux Ansible / Python error.
sudo yum install -y libselinux-python
