-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path001_wwwdaniel_0-bootstrap.yml
49 lines (47 loc) · 1.07 KB
/
001_wwwdaniel_0-bootstrap.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
---
- hosts: localhost
vars:
containers:
- webd01
- webd02
- webd03
tasks:
- name: spin up LXD container
ansible.builtin.include_tasks: common_lxdct.yml
with_items: '{{ containers }}'
- hosts: webd0x
roles:
- basic
- prom_monitored
- loki_monitored
- nginx
- php
tasks:
- name: packages
ansible.builtin.apt:
name:
- php-imagick
- php{{ php_ver }}-mbstring
- unison
- name: Prepare dirs
ansible.builtin.file:
path: /srv/{{ item }}
state: directory
mode: 0744
owner: www-data
with_items:
- blog
- foto2
- skowron.ski
- name: Prepare identifier script
ansible.builtin.copy:
dest: /srv/{{ item }}/info.php
content: '<?php print(gethostname()."; php".phpversion());'
mode: 0770
owner: www-data
group: www-data
with_items:
- blog
- foto2
- name: git adjust
ansible.builtin.command: /usr/bin/git config --global core.filemode false