James is a Python developer who enables high availability and fault tolerance in application servers. James also develops application in Python which must be hosted in the managed servers.

The administrator Sainz wants James to manage 50 CentOS machines, and create python scripts to monitor the machines. James should be added to the group’s admins, developers with his default login shell as bash.

Identify the task to do the same.

- user:
    name: james
    shell: /bin/bash
    groups: admins,developers
    append: yes

 

- user:
    name: james
    shell: /bin/bash
    group: admins,developers

 

- user:
    name: james
    shell: /bin/bash
    group: admins,developers
    append: yes

 

- user:
    name: james
    default_shell: /bin/bash
    groups: admins,developers
    append: yes

 

Correct Option - a

To get all Infosys Certified Associate in Ansible Automation Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in