Skip to content

Commit

Permalink
Add support for Debian Stretch (9)
Browse files Browse the repository at this point in the history
  • Loading branch information
infothrill authored and angstwad committed Sep 24, 2017
1 parent b5f2e87 commit 02345fb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ create some VMs:
* Ubuntu 14.04
* Ubuntu 16.04
* Debian Jessie 8.5
* Debian Stretch 9.0

and it will provision them by applying this role with Ansible.

Expand Down
15 changes: 11 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,35 @@ boxes = [
:name => "ubuntu-1404",
:box => "ubuntu/trusty64",
:ip => '10.0.77.12',
:cpu => "33",
:cpu => "20",
:ram => "256"
},
{
:name => "ubuntu-1604",
:box => "ubuntu/xenial64",
:ip => '10.0.77.13',
:cpu => "33",
:cpu => "20",
:ram => "512"
},
{
:name => "debian-jessie",
:box => "debian/jessie64",
:ip => '10.0.77.14',
:cpu => "33",
:cpu => "20",
:ram => "256"
},
{
:name => "debian-stretch",
:box => "debian/stretch64",
:ip => '10.0.77.16',
:cpu => "20",
:ram => "256"
},
{
:name => "ubuntu-1604-python3",
:box => "ubuntu/xenial64",
:ip => '10.0.77.15',
:cpu => "33",
:cpu => "20",
:ram => "512"
},
]
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ galaxy_info:
- name: Debian
versions:
- jessie
- stretch
- name: Ubuntu
versions:
- trusty
Expand Down
9 changes: 9 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
state: present
update_cache: yes
cache_valid_time: "{{ docker_apt_cache_valid_time }}"
when: ansible_lsb.codename|lower != "stretch" # Debian Stretch does not have gnupg-curl, see below to at least install curl

- name: Ensure at least curl is available for https
apt:
pkg: "curl"
state: present
update_cache: yes
cache_valid_time: "{{ docker_apt_cache_valid_time }}"
when: ansible_lsb.codename|lower == "stretch"

- name: Add Docker repository key
apt_key:
Expand Down

0 comments on commit 02345fb

Please sign in to comment.