mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-28 16:14:31 +00:00
(cherry picked from commit b00fc741e1)
This commit is contained in:
parent
bda5a1389c
commit
db3c0fc23f
@ -7,6 +7,10 @@
|
|||||||
community.docker.current_container_facts:
|
community.docker.current_container_facts:
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
- name: Print facts returned by module
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: result.ansible_facts
|
||||||
|
|
||||||
# The following two tasks are useful if we ever have to debug why this fails.
|
# The following two tasks are useful if we ever have to debug why this fails.
|
||||||
|
|
||||||
- name: Print all Ansible facts
|
- name: Print all Ansible facts
|
||||||
@ -20,13 +24,10 @@
|
|||||||
- /proc/self/cpuset
|
- /proc/self/cpuset
|
||||||
- /proc/1/cgroup
|
- /proc/1/cgroup
|
||||||
- /proc/1/environ
|
- /proc/1/environ
|
||||||
|
ignore_errors: true # not all of these files always exist
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: path
|
loop_var: path
|
||||||
|
|
||||||
- name: Print facts returned by module
|
|
||||||
debug:
|
|
||||||
var: result.ansible_facts
|
|
||||||
|
|
||||||
- name: Validate results
|
- name: Validate results
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
|
|||||||
@ -27,8 +27,8 @@
|
|||||||
- /proc/self/cgroup
|
- /proc/self/cgroup
|
||||||
- /proc/self/cpuset
|
- /proc/self/cpuset
|
||||||
- /proc/self/mountinfo
|
- /proc/self/mountinfo
|
||||||
|
ignore_errors: true # not all of these files always exist
|
||||||
register: slurp
|
register: slurp
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: Print files
|
- name: Print files
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
@ -957,7 +957,7 @@
|
|||||||
- when: device_read_bps_1 is failed
|
- when: device_read_bps_1 is failed
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "'error setting cgroup config for procHooks process' in device_read_bps_1.msg and 'blkio.throttle.read_bps_device: no such device' in device_read_bps_1.msg"
|
- "'error setting cgroup config for procHooks process' in device_read_bps_1.msg and ': no such device' in device_read_bps_1.msg"
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
## device_read_iops ################################################
|
## device_read_iops ################################################
|
||||||
@ -1040,7 +1040,7 @@
|
|||||||
- when: device_read_iops_1 is failed
|
- when: device_read_iops_1 is failed
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "'error setting cgroup config for procHooks process' in device_read_iops_1.msg and 'blkio.throttle.read_iops_device: no such device' in device_read_iops_1.msg"
|
- "'error setting cgroup config for procHooks process' in device_read_iops_1.msg and ': no such device' in device_read_iops_1.msg"
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
## device_write_bps and device_write_iops ##########################
|
## device_write_bps and device_write_iops ##########################
|
||||||
@ -1110,7 +1110,7 @@
|
|||||||
- when: device_write_limit_1 is failed
|
- when: device_write_limit_1 is failed
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "'error setting cgroup config for procHooks process' in device_write_limit_1.msg and 'blkio.throttle.write_bps_device: no such device' in device_write_limit_1.msg"
|
- "'error setting cgroup config for procHooks process' in device_write_limit_1.msg and ': no such device' in device_write_limit_1.msg"
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
## device_requests #################################################
|
## device_requests #################################################
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user