Skip to content

Commit

Permalink
ansible: run package-upgrade after adding new sources
Browse files Browse the repository at this point in the history
Practiced setting up a Debian 8 machine via Vagrant, and
`package-upgrade` needs to be run after adding new sources. After this
update, I think `setup/debian8` can be removed -- I have a Ansible-ized
Vagrant box running a Jenkins worker based on the
`jenkins/worker/create.yml` playbook.

PR-URL: #1069
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
maclover7 committed Jan 9, 2018
1 parent 6106930 commit 008820b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/java-base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
when: os in ("ubuntu1204", "ubuntu1404") or os == "debian8"
debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'

- name: update packages
include_role:
name: package-upgrade

# if this fails you want to check in vars/main.yml and add package name
# as appropriate -- try to use generic os family if available.
- name: install java
Expand Down

0 comments on commit 008820b

Please sign in to comment.