시험덤프
매달, 우리는 1000명 이상의 사람들이 시험 준비를 잘하고 시험을 잘 통과할 수 있도록 도와줍니다.
  / EX407 덤프  / EX407 문제 연습

RedHat EX407 시험

Red Hat Certified Specialist in Ansible Automation exam 온라인 연습

최종 업데이트 시간: 2024년04월24일,23문제.

당신은 온라인 연습 문제를 통해 RedHat EX407 시험지식에 대해 자신이 어떻게 알고 있는지 파악한 후 시험 참가 신청 여부를 결정할 수 있다.

시험을 100% 합격하고 시험 준비 시간을 35% 절약하기를 바라며 EX407 덤프 (최신 실제 시험 문제)를 사용 선택하여 현재 최신 23개의 시험 문제와 답을 포함하십시오.

 / 1

Question No : 1


CORRECT TEXT
Create a playbook called issue.yml in /home/sandy/ansible which changes the file /etc/issue on all managed nodes: If host is a member of (lev then write "Development" If host is a member of test then write "Test" If host is a member of prod then write "Production"

정답: Solution as:


Question No : 2


CORRECT TEXT
Create a jinja template in /home/sandy/ansible/ and name it hosts.j2. Edit this file so it looks like the one below. The order of the nodes doesn't matter. Then create a playbook in /home/sandy/ansiblecalledhosts.ymland install the template on dev node at /root/myhosts



정답: Solution as:


Question No : 3


CORRECT TEXT
Create a role called sample-apache and store it in /home/bob/ansible/roles.
The role should satisfy the following requirements:
*In the role, install and enable httpd. Also enable the firewall to allow http. Also run the template
*index.html.j2 and make sure this runs Create a template index.html.j2 that displays "Welcome to the server HOSTNAME"
In a play called apache.yml in /home/bob/ansible/ run the sample-apache role.

정답: /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 No : 4


CORRECT TEXT
Create a file called packages.yml in/home/sandy/ansibleto install somepackages 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.

정답: Solution as:



** NOTE 1 a more acceptable answer is likely 'present' since it's not asking to install the latest
state: present
** NOTE 2 need to update the development node
- name: update all packages on developmentnode yum:
name: '*'
state: latest

Question No : 5


CORRECT TEXT
Create a file called specs.empty in home/bob/ansible on the local machine as follows:
HOST=
MEMORY=
BIOS=
VDA_DISK_SIZE=
VDB_DISK_SIZE=
Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path/root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect the appropriate ansible facts.

정답: Solution as:





Question No : 6


CORRECT TEXT
Create a file called mysecret.yml on the control host using ansible vault in home/bob/ansible. Set the password to 'notasafepass' and inside the file create a variable called dev_pass with the value of devops. Save the file. Then go back in the file and change dev_pass value to devops123. Then change the vault password of mysecret.yml to verysafepass

정답: ansible-vault create lock.yml
New Vault Password: reallysafepw
Confirm: reallysafepw


 / 1