-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins.yml
42 lines (40 loc) · 1.09 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
- hosts: jenkinsgroup
remote_user: demo
become: true
gather_facts: false
pre_tasks:
- setup: # aka gather_facts
# - name: Add domain to CloudFalre
# cloudflare_dns:
# zone: "{{base_web_domain}}"
# record: "{{ansible_nodename}}"
# type: A
# value: "{{ ansible_default_ipv4.address }}"
# account_email: "{{ certbot_cloudflare_email }}"
# account_api_token: "{{ certbot_cloudflare_api_key }}"
# register: record
# - debug: var=record
- name: set timezone to America/Chicago
timezone:
name: America/Chicago
- name: gather os specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}-{{ php_version }}.yml"
- "{{ ansible_distribution }}.yml"
tags: vars
vars_files:
- vars/jenkins.yml
- vars/main-vars.yml
roles:
- users
- geerlingguy.git
- andrewrothstein.hub
- geerlingguy.postfix
- geerlingguy.pip
- role: oefenweb.swapfile
check_mode: no
- geerlingguy.certbot
- geerlingguy.java
- geerlingguy.jenkins
- geerlingguy.apache