45 lines
728 B
YAML
45 lines
728 B
YAML
---
|
|
- name: Prepare host
|
|
hosts: localhost
|
|
roles:
|
|
- common
|
|
|
|
- name: Prepare Apache
|
|
hosts: localhost
|
|
roles:
|
|
- apache
|
|
|
|
- name: Install Jenkins
|
|
hosts: localhost
|
|
roles:
|
|
- geerlingguy.jenkins
|
|
|
|
- hosts: localhost
|
|
tasks:
|
|
- name: Create Jenkins CI directory
|
|
file:
|
|
path: "{{ ci_dir }}/{{ item }}"
|
|
owner: "{{ jenkins_user }}"
|
|
group: "{{ jenkins_user }}"
|
|
mode: 0755
|
|
state: directory
|
|
with_items:
|
|
- files/nodepool-scripts
|
|
- files/ext-files
|
|
- logs
|
|
|
|
- name: Install jjb
|
|
hosts: localhost
|
|
roles:
|
|
- jjb
|
|
|
|
- name: Install zuul
|
|
hosts: localhost
|
|
roles:
|
|
- zuul
|
|
|
|
- name: Install nodepool
|
|
hosts: localhost
|
|
roles:
|
|
- nodepool
|