-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-basic.yml
75 lines (65 loc) · 1.38 KB
/
docker-basic.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
- name: add keys
copy:
src: docker/authorized_keys
dest: /home/ubuntu/.ssh/authorized_keys
mode: 0400
- name: prepare locale
shell: locale-gen en_US.UTF-8
- name: set locales
lineinfile:
dest: /etc/environment
regexp: '{{ item }}'
line: "{{ item }}"
state: present
with_items:
- LC_ALL="en_US.UTF-8"
- LANG="en_US.UTF-8"
- name: update ubuntu
apt:
name: "*"
state: latest
force_apt_get: yes
- name: install packages ubuntu
apt:
name: ['apt-transport-https',
'ca-certificates',
'coreutils',
'htop',
'iftop',
'iotop',
'iperf',
'iproute2',
'iputils-ping',
'nmon',
'ntpdate',
'psmisc',
'python-pip',
'software-properties-common',
'sysstat',
'netcat',
'tzdata',
'vim']
- name: update pip
become: true
shell: pip install --upgrade pip
- name: set timezone
timezone:
name: UTC
- name: disable irqbalance service
systemd:
name: irqbalance.service
state: stopped
enabled: false
daemon_reload: yes
- name: set limits
become: true
copy:
src: docker/limits.conf
dest: /etc/security/limits.conf
- name: copy sysctl
copy:
src: docker/sysctl.conf
dest: /etc/sysctl.conf
- name: apply sysctl
shell: sysctl -p