Skip to content

Role fails when run inside Linux Container (lxc): Failed to reload sysctl: sysctl: setting key "vm.overcommit_memory": Read-only file system #241

Open
@NHGmaniac

Description

@NHGmaniac

Inside Linux Containers it is not possible to modify Kernel Parameters.
Issue seems to be this task, a quick fix would be adding ignore_errors: true to the task.

- name: enable overcommit in sysctl
sysctl:
name: vm.overcommit_memory
value: "1"
state: present
reload: yes
ignoreerrors: yes
when: redis_travis_ci is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions