You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/python_module_rlimit_nofile/tasks/main.yml

32 lines
640 B
YAML

- name: valid template
shell: ulimit -n
vars:
ansible_python_module_rlimit_nofile: "{{ 123 }}"
register: result
- assert:
that:
- result.stdout | int == 123
- name: omit template
shell: ulimit -n
vars:
ansible_python_module_rlimit_nofile: "{{ omit }}"
register: result
- assert:
that:
- result.stdout | int == lookup('pipe', 'ulimit -n') | int
- name: undefined variable
shell: ulimit -n
vars:
ansible_python_module_rlimit_nofile: "{{ undefined_variable }}"
register: result
ignore_errors: yes
- assert:
that:
- result is failed
- result.msg is contains("undefined")