in Technology by

What is the output statement of the following snippet?

tasks:

- name: test

  shell: echo "hello"

  register: a

  debug: msg="the message is {{ a.stdout }}"

1. The message 'hello' will get printed without any errors.

2. Syntax error because of conflicting action statements 

1 Answer

0 votes
by

Correct answer is:-  2. Syntax error because of conflicting action statements 

Related questions

0 votes
    What is the output statement of the following snippet? tasks: - name: test shell: echo "hello" register: a ... any errors (ii)syntax error because of conflicting action statements...
asked Jan 25, 2023 in Technology by JackTerrance
0 votes
    Which of the following is a valid YAML syntax? (i)path: F:\test (ii)All the options mentioned (iii)path: F: (iv)path: "F\test"\programs...
asked Jan 25, 2023 in Technology by JackTerrance
0 votes
    What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i) a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    Predict the output of the following code snippet function foo(input: boolean) { let one = 1200; if (input) { let ans ... 1. 1201 2. Undefined 3. Compilation error 4. Runtime error...
asked Jun 29, 2021 in Technology by JackTerrance
0 votes
    What are the components of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Ansible pipelining?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is use of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What are Ansible's roles?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How many modules are there in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How to keep data secret in a Ansible playbook?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How is Ansible upgraded?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is a handler in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How does synchronize module works of an Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Tag in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    In the context of Ansible, what is meant by “facts”?...
asked Jan 28, 2023 in Technology by JackTerrance
...