Commit bef828d9 authored by Alain Takoudjou's avatar Alain Takoudjou

playbook: dist upgrade debian7 to debian8

parent 0b77f029
......@@ -12,28 +12,19 @@
apt: name=linux-image-4.9.0-0.bpo.5-amd64 state=latest default_release=jessie-backports update_cache=yes
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
- name: Download kernel 4.6 from Debian8 repository to install on Debian 7
get_url: url=http://ftp.fr.debian.org/debian/pool/main/l/linux-base/linux-base_4.3~bpo8+1_all.deb dest=/tmp/linux-base_4.3~bpo8+1_all.deb
- name: Install Debian jessie repository on debian 7
lineinfile:
dest: '/etc/apt/sources.list'
line: "{{item.line}}"
state: present
with_items:
- {line: "deb http://deb.debian.org/debian jessie main"}
- {line: "deb-src http://deb.debian.org/debian jessie main"}
- {line: "deb http://security.debian.org/ jessie/updates main contrib non-free"}
- {line: "deb-src http://security.debian.org/ jessie/updates main contrib non-free"}
- {line: "deb http://ftp.debian.org/debian jessie-backports main"}
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Download kernel 4.6 from Debian8 repository to install on Debian 7
get_url: url=http://ftp.fr.debian.org/debian/pool/main/l/linux/linux-image-4.6.0-0.bpo.1-amd64_4.6.1-1~bpo8+1_amd64.deb dest=/tmp/linux-image-4.6.0-0.bpo.1-amd64_4.6.1-1~bpo8+1_amd64.deb
- name: Dist upgrade debian 7 to debian 8
apt: upgrade=dist update_cache=yes
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install initramfs-tools on debian 7
apt: name=initramfs-tools state=latest default_release=wheezy-backports update_cache=yes
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install udev on debian 7
apt: name=udev state=latest default_release=wheezy-backports update_cache=yes
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install linux base 4.3 on debian 7
apt: deb=/tmp/linux-base_4.3~bpo8+1_all.deb
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install kernel 4.6 on debian 7.0
apt: deb=/tmp/linux-image-4.6.0-0.bpo.1-amd64_4.6.1-1~bpo8+1_amd64.deb
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment