-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathmain.yml
36 lines (32 loc) · 1.07 KB
/
main.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
---
##########################################
# Config changes for Dockerhost machines #
##########################################
- name: Enable ipv6 on Dockerhost
lineinfile:
path: /etc/docker/daemon.json
line: '{ "ipv6": true, "fixed-cidr-v6": "fd00::/80" }'
insertafter: EOF
create: yes
register: restart_docker
notify:
- Restart docker service
# lineinfile does not work here - similar to the operation in /var/log in adopt_etc
# lineinfile: path /proc/sys/kernel/core_pattern state: present: regexp: . line: core.%p
# therefore the following section wil not become live prior to a reboot
#
- name: Make core file setting live immediately;
command: "echo core.%p > /proc/sys/kernel/core_pattern"
- name: Ensure core files are able to be created within docker containers on reboot
lineinfile:
path: /etc/sysctl.conf
state: present
regexp: kernel_core_pattern
line: kernel.core_pattern=core.%p
- name: Run updatePackage.sh script
script: scripts/updatepackages.sh
args:
executable: bash
tags:
- updateContainers
- never