-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins.yml
50 lines (42 loc) · 1.25 KB
/
jenkins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- name: Play for jenkins.hayaworld.home
hosts: jenkins
remote_user: hayato
gather_facts: true
become: true
vars_files:
- inventories/host_vars/jenkins.yml
- inventories/host_vars/networks.yml
handlers:
- name: Restart handler tasks
ansible.builtin.import_tasks:
file: handlers/main.yml
tasks:
- name: Common Settings
ansible.builtin.import_tasks:
file: tasks/all/main.yml
- name: Install Jenkins
ansible.builtin.import_tasks:
file: tasks/jenkins/jenkins_install.yml
- name: Install Docker(ce)
ansible.builtin.import_role:
name: geerlingguy.docker
vars:
docker_edition: 'ce'
docker_packages_state: present
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_restart_handler_state: restarted
docker_users:
- hayato
- jenkins
- name: Install Ansible from PPA
ansible.builtin.import_tasks:
file: tasks/ansible_install.yml
- name: Make Started Services
ansible.builtin.import_tasks:
file: tasks/service_start.yml
- name: Install/Config Zramswap
ansible.builtin.import_tasks:
file: tasks/zram.yml