-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.yml
52 lines (51 loc) · 1.32 KB
/
web.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
51
52
- hosts: webgroup
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/webgroup.yml
- vars/main-vars.yml
roles:
- users
- geerlingguy.git
- andrewrothstein.hub
- geerlingguy.postfix
- role: oefenweb.swapfile
check_mode: no
- setup
- michaelpporter.certbot_cloudflare
- geerlingguy.apache
- geerlingguy.php-versions
- geerlingguy.php
- geerlingguy.apache-php-fpm
- geerlingguy.composer
- geerlingguy.php-mysql
- geerlingguy.mysql
- geerlingguy.adminer
- geerlingguy.drush
- geerlingguy.nodejs
- sbaerlocher.wp-cli
- wtanaka.jq
- logwatch
- config