Skip to content
Jenkins ansible playbook
Shell
Branch: master
Clone or download
Pull request Compare This branch is 22 commits ahead of mdn:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
roles
vars
CODE_OF_CONDUCT.md
LICENSE
README.md
ansible.cfg
contribute.json
hosts
local_settings.yml
local_settings.yml-dist
site.yml

README.md

ansible-jenkins

This is an ansible playbook to install and configure Jenkins-CI.

The playbook will install NGINX, Docker, a local-only SMTP server and Jenkins. It will also install Docker-maintenance cron jobs and Jenkins-backup scripts to S3.

This playbook assumes that the instance is behind an elb and the elb will do its SSL termination. The ssl certificate can be obtained using AWS ACM or can be manually uploaded

This playbook is a rework of the ee-infra-jenkins

Build your own

  1. SSH to host you want to run this
  2. Install git and ansible
  3. Clone this repository to a location
  4. Run the playbook
ansible-playbook site.yml -e "nginx_htpasswd=YourPasswordHere jenkins_backup_bucket=BucketNameHere jenkins_backup_dms=deadmanssitchurl jenkins_backup_directory=backupdirpath"

Currently this playbook is being used as part of an autoscaling group userdata that clones and runs this playbook on boot.

Jenkins backups

This playbook expects that you use the ThinBackup Jenkins plugin and that you save backups in /data/backups.

You can’t perform that action at this time.