Skip to content

Commit

Permalink
possible fix for package variant
Browse files Browse the repository at this point in the history
  • Loading branch information
otakup0pe committed Feb 21, 2018
1 parent f29be2d commit d3a8d77
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ script:
- echo localhost > inventory

# Syntax check
- ansible-playbook -i inventory tests/playbook.yml --syntax-check
- ansible-playbook -i inventory test.yml --syntax-check

# Play test
- ansible-playbook -i inventory tests/playbook.yml --connection=local --sudo -e "$ROLE_OPTIONS"
- travis_wait ansible-playbook -i inventory test.yml --connection=local --sudo -e "$ROLE_OPTIONS"

# Idempotence test
- ansible-playbook -i inventory tests/playbook.yml --connection=local --sudo -e "$ROLE_OPTIONS" > idempotence_out
- ansible-playbook -i inventory test.yml --connection=local --sudo -e "$ROLE_OPTIONS" > idempotence_out
- ./tests/idempotence_check.sh idempotence_out
11 changes: 3 additions & 8 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ Vagrant.configure('2') do |config|
config.ssh.private_key_path = '~/.vagrant.d/insecure_private_key'

config.vm.define 'anxs' do |machine|
machine.vm.box = "ubuntu/trusty64"
#machine.vm.box = "ubuntu/precise64"
#machine.vm.box = "debian/jessie64"
#machine.vm.box = "debian/wheezy64"
#machine.vm.box = "chef/centos-7.1"
#machine.vm.box = "chef/centos-6.6"
machine.vm.box = "hashicorp/trusty64"

machine.vm.network :private_network, ip: '192.168.88.17'
machine.vm.hostname = 'anxs.local'
machine.vm.provision 'ansible' do |ansible|
ansible.playbook = 'tests/playbook.yml'
ansible.sudo = true
ansible.playbook = 'test.yml'
ansible.become = true
ansible.inventory_path = 'vagrant-inventory'
ansible.host_key_checking = false
ansible.extra_vars = {
Expand Down
2 changes: 1 addition & 1 deletion tasks/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@

- name: node.js | Install the node.js package
apt:
pkg: "nodejs={{ nodejs_version }}-1nodesource1~{{ ansible_lsb.codename }}1"
deb: "{{nodejs_apt_url}}"
update_cache: yes
state: present
7 changes: 0 additions & 7 deletions tests/playbook.yml

This file was deleted.

1 change: 1 addition & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
nodejs_apt_key_url: "https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280"
nodejs_apt_key: "68576280"
nodejs_apt_url: "https://deb.nodesource.com/node_{{ nodejs_version.split('.')[0] }}.x/pool/main/n/nodejs/nodejs_{{nodejs_version}}-1nodesource1_{{ansible_lsb.codename}}.deb"

0 comments on commit d3a8d77

Please sign in to comment.