-
Notifications
You must be signed in to change notification settings - Fork 3
/
bitnode.yml
43 lines (43 loc) · 1.12 KB
/
bitnode.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
- hosts:
- bitnode
roles:
- lusers
- superusers
- role: mediawiki-database
credentials:
database: "{{ mediawiki.db.name }}"
username: "{{ mediawiki.db.user }}"
password: "{{ mediawiki.db.password }}"
- role: minio-bin
minio_bin__build_mc: yes
- mariadb-base
- lxc-host
handlers:
- name: systemctl restart systemd-networkd
become: true
systemd:
name: systemd-networkd
state: restarted
tasks:
- tags: packages
become: true
block:
- copy:
dest: /etc/apt/preferences.d/jessie-backports
content: |
Package: *
Pin: release a=jessie-backports
Pin-Priority: 500
- name: apt install
with_items:
- ufw
apt:
name: "{{ item }}"
install_recommends: false
- import_tasks: bitnode-network.yml
tags: network
become: true
vars:
int_link: br0
int_ipv4: "{{ host_database.bitnode.interfaces.br0.ipv4 }}"
int_ipv6: "{{ host_database.bitnode.interfaces.br0.ipv6 }}"