Ansible playbooks for setting up the CI server ============================================== Installs Jenkins on a remote Debian system. Requires on host ---------------- - ansible (tested 2.4.2.0) - ansible-galaxy ### Host installation and updating ``` $ ansible-galaxy install --force -r requirements.yml ``` Configure --------- Create `inventory.yml`. **Don't commit this file**, it contains site-specific config! Deploy ------ To deploy e.g. the jenkins master user: ``` $ ansible-playbook -i ./inventory.yml ./playbook.yml -s --check -l jenkinsmaster --diff ``` If everything looks o.k. rerun without *--check*. ### From within Jenkins ----------------------- Log in to the new instance and deal with security warnings: - enable CSRF in config, select issuer, enable proxy compat - disable CLI - disable deprecated protocols (Java Web Start Agent Protocol/1 and /2) bu unchecking fields in Configure global security, Agents, Agent protocols