diff --git a/roles/jitsimeet/tasks/main.yml b/roles/jitsimeet/tasks/main.yml index ed0cae5..f489960 100644 --- a/roles/jitsimeet/tasks/main.yml +++ b/roles/jitsimeet/tasks/main.yml @@ -9,21 +9,16 @@ - import_role: name: webserver # required. The name of the role to be executed. # install software - - name: jitsimeet | add repo - apt_repository: - repo: universe - state: present - update_cache: yes - # - name: jitsimeet | adjust limits - # blockinfile: - # path: "/etc/systemd/system.conf" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name). - # block: | # not required. The text to insert inside the marker lines. If it is missing or an empty string, the block will be removed as if C(state) were specified to C(absent). - # DefaultLimitNOFILE=65000 - # DefaultLimitNPROC=65000 - # DefaultTasksMax=65000 - # - name: jitsimeet | reload systemd - # systemd: - # daemon_reload: true # not required. Run daemon-reload before doing any other operations, to make sure systemd has read any changes. When set to C(yes), runs daemon-reload even if the module does not start or stop anything. + - name: jitsimeet | adjust limits + blockinfile: + path: "/etc/systemd/system.conf" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name). + block: | # not required. The text to insert inside the marker lines. If it is missing or an empty string, the block will be removed as if C(state) were specified to C(absent). + DefaultLimitNOFILE=65000 + DefaultLimitNPROC=65000 + DefaultTasksMax=65000 + - name: jitsimeet | reload systemd + systemd: + daemon_reload: true # not required. Run daemon-reload before doing any other operations, to make sure systemd has read any changes. When set to C(yes), runs daemon-reload even if the module does not start or stop anything. rescue: - set_fact: task_failed=true