[root@localhost ansible]# cat zss.yml
- hosts: zss
tasks:
- name: step1
ping:
- name: step2 install zabbix3.4 source
shell: egrep KFQX /etc/sudoers|wc -l
ignore_errors: True
register: check_value
- name: step3
shell: echo "{{ check_value.stdout }} kkk" >/tmp/ppp.txt
when: check_value.stdout|int > 0