Qtr No. 213, New Town Yehlanka
Indore 454775, India
Zen Inc., has configured Mail Server for one of their Clients. Zen had promised their clients that the servers will have 99.99% availability.
At the end of the month, the client has requested for the server availability details.
Which of the following playbook will fetch the required details?
---
- hosts: mail
become: true
become_method: sudo
tasks:
- name: Find the uptime of the server
register: uptimeoutput
command: "uptime"
- debug:
var: uptimeoutput.stdout_lines
---
- hosts: mail
become: true
become_method: sudo
tasks:
- name: Find the uptime of the server
command: "uptime"
- debug:
var: uptimeoutput.stdout_lines
---
- hosts: mail
become: true
become_method: sudo
tasks:
- name: Find the uptime of the server
register: uptimeoutput
command: "uptime"
- debug:
msg: uptimeoutput.stdout_lines
---
- hosts: mail
become: true
become_method: sudo
tasks:
- name: Find the uptime of the server
register: uptimeoutput
command: "uptime"
- debug:
- uptimeoutput.stdout_lines
To get all Infosys Certified Associate in Ansible Automation Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee