File: main.yml

package info (click to toggle)
python-mitogen 0.3.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,728 kB
  • sloc: python: 24,644; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (27 lines) | stat: -rw-r--r-- 864 bytes parent folder | download
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
# > If running `docker run --rm -it centos:centos6.7 bash` immediately exits
# > with status code 139, check to see if your system has disabled vsyscall:
# > ...
# > If you do not see a vsyscall mapping, and you need to run a CentOS 6
# > container, try adding vsyscall=emulated to the kernel options.
# > -- https://hub.docker.com/_/centos

- name: Check vsyscall enabled
  command:
    cmd: grep -c vsyscall /proc/self/maps
  register: grep_self_maps_result
  changed_when: false
  check_mode: false
  failed_when:
    # 0 -> match, 1 -> no match, 2 -> error
    - grep_self_maps_result.rc not in [0, 1]

- name: Enable vsyscall
  lineinfile:
    path: /etc/default/grub
    regexp: '^GRUB_CMDLINE_LINUX_DEFAULT.+'
    line: GRUB_CMDLINE_LINUX_DEFAULT="quiet vsyscall=emulate"
  when:
    - grep_self_maps_result.rc != 0
  notify:
    - Update GRUB
    - Reboot