Skip to content

Commit

Permalink
test: apt-proxy, fix molecule docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Nov 18, 2017
1 parent 908c5b8 commit 64f7b31
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ before_install:
- docker --version
install:
- pip install molecule docker
before_script:
- export MOLECULE_APTPROXY_PATH="$PWD/00aptproxy" && touch "$MOLECULE_APTPROXY_PATH"
script:
- molecule test

Expand Down
18 changes: 0 additions & 18 deletions molecule.yml

This file was deleted.

11 changes: 3 additions & 8 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@ driver:
name: docker
platforms:
- name: ansible-role-server-scripts-1604
image: ubuntu
image_version: 16.04
volume_mounts:
- ${MOLECULE_APTPROXY_PATH}:/etc/apt/apt.conf.d/00aptproxy
image: ubuntu:16.04

- name: ansible-role-server-scripts-centos-7
image: centos
image_version: 7
volume_mounts:
- ${MOLECULE_APTPROXY_PATH}:/etc/apt/apt.conf.d/00aptproxy
image: centos:7

lint:
name: yamllint
Expand Down
7 changes: 6 additions & 1 deletion molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
- name: Prepare
hosts: all
gather_facts: False
tasks: []
tasks:
- name: apt-proxy
copy:
content: "Acquire::http::Proxy \"{{ lookup('env', 'APT_PROXY') }}\"; Acquire::https::Proxy \"false\";"
dest: /etc/apt/apt.conf.d/01proxy
failed_when: False

0 comments on commit 64f7b31

Please sign in to comment.