I meant:
- debug: var=hello|json_query('results[].status.ActiveState')
On Tue, 28 Dec 2021 at 03:31, Thomas Stephen Lee wrote:
>
> Hi @Dick Visser,
>
> That gives the below output.
>
> -%<-
>
> TASK [debug]
> *
Hi @Dick Visser,
That gives the below output.
-%<-
TASK [debug] ***
ok: [localhost] => {
"hello|json_query('results[].status.ActiveState')": [
"active",
"active",
"active"
I believe this is what you wanted - right?
On Tue, 28 Dec 2021 at 12:58, Thomas Stephen Lee wrote:
>
> Hi @Dick Visser,
>
> That gives the below output.
>
> -%<-
>
> TASK [debug]
> ***
> ok: [localhos
var
On Mon, Dec 27, 2021 at 11:58 PM Marian Saldhana
wrote:
>
> Hi All,
>
> This is my code:
>
> ---
> # tasks file for uname
>
> - name: Kernel version number
> register: uname_a
> command: "uname -a"
>
> - debug:
> var: uname_a.stdout_lines
>
> +++
>
> TAS
Hi @Dick Visser,
In my code, I wrote only for the state value, but I also wanted the
name value of the service.
I thought I would figure out the name part once I get the state part working.
My current status is
-%<-
debug:
msg: "{{ hello.results |
json_q
Hi all,
>From my ansible user I was trying to fetch the nmon files (root owned) but
throwed me error even though I have mentioned as become: yes. Now if I run
the same playbook using root user ,my task is getting completed but I need
to perform this task using ansible user not as root user.
On Tue
Then your privilege escalation is not set up correctly. You should fix
that.
But since you just mention the opaque "throwed me error" it's mostly a
guess.
On Wed, 29 Dec 2021 at 07:26, Kannappan M wrote:
> Hi all,
> From my ansible user I was trying to fetch the nmon files (root owned) but
> t