Skip to content

Instantly share code, notes, and snippets.

@cecepm
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save cecepm/b7fa9ef79c5464340c28 to your computer and use it in GitHub Desktop.

Select an option

Save cecepm/b7fa9ef79c5464340c28 to your computer and use it in GitHub Desktop.
Ansible task for Installing jenkins LTS release on Ubuntu
---
- name: Add Jenkins apt key
apt_key: url=http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key state=present
- name: Add Java repository to sources
apt_repository: repo="deb http://pkg.jenkins-ci.org/debian-stable binary/" state=present
- name: Update APT package cache
apt: update_cache=yes
- name: Install Jenkins
apt: name=jenkins state=latest install_recommends=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment