Professional Documents
Culture Documents
EX294
Web: www.dumpscafe.com
Email: support@dumpscafe.com
IMPORTANT NOTICE
Feedback
We have developed quality product and state-of-art service to ensure our customers interest. If you have any
suggestions, please feel free to contact us at feedback@dumpscafe.com
Support
If you have any questions about our product, please provide the following items:
exam code
screenshot of the question
login id/email
please contact us at support@dumpscafe.com and our technical experts will provide support within 24 hours.
Copyright
The product of each order has its own encryption code, so you should use it independently. Any unauthorized
changes will inflict legal punishment. We reserve the right of final explanation for this statement.
Pass Exam RedHat - EX294
Question #:1
User sandy has been created on your control node with the appropriate permissions already, do not change or
modify ssh keys. Install the necessary packages to run ansible on the control node. Configure ansible.cfg to be
in folder /home/sandy/ansible/ansible.cfg and configure to access remote machines via the sandy user. All
roles should be in the path /home/sandy/ansible/roles. The inventory path should be in
/home/sandy/ansible/invenlory.
node1.example.com
node2.example.com
node3.example.com
node4.example.com
node5.example.com
Configure these nodes to be in an inventory file where node I is a member of group dev. nodc2 is a member of
group test, node3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a
member of group webservers.
Explanation
In/home/sandy/ansible/ansible.cfg
[defaults]
inventory=/home/sandy/ansible/inventory
roles_path=/home/sandy/ansible/roles
remote_user= sandy
host_key_checking=false
[privilegeescalation]
become=true
become_user=root
become_method=sudo
become_ask_pass=false
In /home/sandy/ansible/inventory
[dev]
node1 .example.com
[test]
node2.example.com
[proxy]
node3 .example.com
[prod]
node4.example.com
node5 .example.com
[webservers:children]
prod
Question #:2
Create a playbook calledtimesvnc.yml in /home/sandy/ansible using rhel system role timesync. Set the time to
use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts.
Explanation
Solution as:
Question #:3
Explanation
ansible-vault create myvault.yml
Question #:4
Create a file called packages.yml in/home/sandy/ansibleto install some packages for the following hosts. On
dev, prod and webservers install packages httpd, mod_ssl, and mariadb. On dev only install the development
tools package. Also, on dev host update all the packages to the latest.
Explanation
Solution as:
** NOTE 1 a more acceptable answer is likely 'present' since it's not asking to install the latest
state: present
yum:
name: '*'
state: latest
Question #:5
Userbobhas been created on your control node. Give him the appropriate permissions on thecontrol node.
Install the necessary packages to run ansible on the control node.
• The roles path should include /home/bob/ansible/roles, as well as any otherpath that may be required for the
course of the sample exam.
nodel.example.com
node2.example.com
node3.example.com
node4.example.com
node5.example.com
Configure these nodes to be in an inventory file where node1 is a member of groupdev.nodc2 is a member of
group test, nodc3 is a member of groupproxy,nodc4 and node 5 are members of groupprod.Also,prodis a
member of group webservers.
Explanation
In/home/sandy/ansible/ansible.cfg
[defaults]
inventory=/home/sandy/ansible/inventory
roles_path=/home/sandy/ansible/roles
remote_user= sandy
host_key_checking=false
[privilegeescalation]
become=true
become_user=root
become_method=sudo
become_ask_pass=false
In /home/sandy/ansible/inventory
[dev]
node 1 .example.com
[test]
node2.example.com
[proxy]
node3 .example.com
[prod]
node4.example.com
node5 .example.com
[webservers:children]
prod
Question #:6
Explanation
Solution as:
Question #:7
Create a role called sample-apache in/home/sandy/ansible/rolesthat enables and starts httpd, enables and
starts the firewall and allows the webserver service. Create a template calledindex.html.j2which creates and
serves a message from/var/www/html/index.htmlWhenever the content of the file changes, restart the
webserver service.
Replace the FQDN with the fully qualified domain nameand IP with the ip address of the node using ansible
facts. Lastly, create a playbook in/home/sandy/ansible/calledapache.ymland use the role to serve the index
file on webserver hosts.
Explanation
/home/sandy/ansible/apache.yml
/home/sandy/ansible/roles/sample-apache/tasks/main.yml
/home/sandy/ansible/roles/sample-apache/templates/index.html.j2
In /home/sandy/ansible/roles/sample-apache/handlers/main.yml
Question #:8
Create a playbookthatchanges the default target onallnodes tomulti-usertarqet. Do this in playbook file called
target.yml in/home/sandy/ansible
Explanation
- name: change default target
hosts: all
tasks:
file:
Question #:9
Explanation
Solution as:
Question #:10
Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day
at noon. Name is job 'datejob'
Explanation
Solution as:
We help you pass any IT / Business Certification Exams with 100% Pass Guaranteed or Full Refund. Especially
Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on.
We prepare state-of-the art practice tests for certification exams. You can reach us at any of the email addresses listed
below.
Sales: sales@dumpscafe.com
Feedback: feedback@dumpscafe.com
Support: support@dumpscafe.com
Any problems about IT certification or our products, You can write us back and we will get back to you within 24
hours.