Re: [ansible-project] Ansible and aureport

2024-05-09 Thread John Harmon
I will give it a try, thank you. Sorry about the slow reply--been a busy day On Thursday, May 9, 2024 at 1:30:29 AM UTC-6 Dick Visser wrote: > In any case, the following tasks works fine for me: > > > --- > - name: test > become: true > hosts: bar > tasks: > - name: foo > command: aureport > re

Re: [ansible-project] Ansible and aureport

2024-05-09 Thread Dick Visser
In any case, the following tasks works fine for me: --- - name: test become: true hosts: bar tasks: - name: foo command: aureport register: out - debug: var=out.stdout_lines TASK [debug] **

Re: [ansible-project] Ansible and aureport

2024-05-09 Thread Dick Visser
On Thu, 9 May 2024 at 00:12, John Harmon wrote: > > I am running this in my task file (tried shell, command, and raw). Any idea > why and how to work around the issue?: > > - name: Check number of AVCs > ansible.builtin.raw: "aureport | grep -i avc" > register: avcreport > > - debug: > v

[ansible-project] Ansible and aureport

2024-05-08 Thread John Harmon
I am running this in my task file (tried shell, command, and raw). Any idea why and how to work around the issue?: - name: Check number of AVCs ansible.builtin.raw: "aureport | grep -i avc" register: avcreport - debug: var: avcreport It returns a report with all zero values, but if I r