tasks: lxc_post_install: Fix system.conf DefaultTasksMax setting

systemd does not allow inline comments so the default value was never
applied to unit files as systemd printed the following warning in the
journal

Jul 03 16:39:19 vagrant-openSUSE-Leap systemd[1]: [/etc/systemd/system.conf:44] Maximum tasks value '8192 # Managed by Ansible' invalid. Ignoring.

As such, drop the comment.

Fixes: I8b4143aac84d4c795cab9c0d978c9a97ebea1793
Depends-On: I55a06c1903c4435db6d820e6919daa5f10362031
Change-Id: I6bca2b5d8ac875d8f81eb4ce61a59b97fb9d3b1e
This commit is contained in:
Markos Chandras 2017-07-03 15:39:48 +01:00
parent 9ad5dbbf92
commit bdab4ef8b5

View File

@ -55,7 +55,7 @@
dest: /etc/systemd/system.conf dest: /etc/systemd/system.conf
state: present state: present
regexp: "^.*DefaultTasksMax.*$" regexp: "^.*DefaultTasksMax.*$"
line: "DefaultTasksMax={{ lxc_default_tasks_max }} # Managed by Ansible" line: "DefaultTasksMax={{ lxc_default_tasks_max }}"
when: when:
- ansible_service_mgr == 'systemd' - ansible_service_mgr == 'systemd'
notify: notify: