質問 1: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'
正解:
Solution as:
質問 2:Modify file content.
------------------------
Create a playbook called /home/admin/ansible/modify.yml as follows:
* The playbook runs on all inventory hosts
* The playbook replaces the contents of /etc/issue with a single line of text as
follows:
--> On hosts in the dev host group, the line reads: "Development"
--> On hosts in the test host group, the line reads: "Test"
--> On hosts in the prod host group, the line reads: "Production"
正解:
Solution as:
# pwd
/home/admin/ansible
# vim modify.yml
---
- name:
hosts: all
tasks:
- name:
copy:
content: "Development"
dest: /etc/issue
when: inventory_hostname in groups['dev']
- name:
copy:
content: "Test"
dest: /etc/issue
when: inventory_hostname in groups['test']
- name:
copy:
content: "Production"
dest: /etc/issue
when: inventory_hostname in groups['prod']
:wq
# ansible-playbook modify.yml --syntax-check
# ansible-playbook modify.yml
質問 3:Install and configure ansible
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.
You will have access to 5 nodes.
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.
正解:
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
質問 4:Create a file called adhoc.sh in /home/sandy/ansible which will use adhoc commands to set up a new repository.
The name of the repo will be 'EPEL' the description 'RHEL8' the baseurl is 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp' there is no gpgcheck, but you should enable the repo.
* You should be able to use an bash script using adhoc commands to enable repos.
Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.
正解:
chmod 0777 adhoc.sh
vim adhoc.sh
#I/bin/bash
ansible all -m yum_repository -a 'name=EPEL description=RHEL8
baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp
gpgcheck=no enabled=yes'
弊社は失敗したら全額で返金することを承諾します
我々は弊社のEX294日本語問題集に自信を持っていますから、試験に失敗したら返金する承諾をします。我々のRedHat EX294日本語を利用して君は試験に合格できると信じています。もし試験に失敗したら、我々は君の支払ったお金を君に全額で返して、君の試験の失敗する経済損失を減少します。
RedHat EX294日本語 認定試験の出題範囲:
トピック | 出題範囲 |
---|
トピック 1 | - Create a simple script
- Configure error handling
- Working with roles
- Download and use roles from Ansible Galaxy
|
トピック 2 | - Create SSH keys and distribute them to managed nodes
- Create and use static invariants to define host groups
|
トピック 3 | - Understand the key components of Ancibel Exams, Units, Variable, Facts, Play the manual, configuration file
|
トピック 4 | - Features Use system modules that work with Software package and storage, Firewall rules, storage devices, Users and groups
|
トピック 5 | - Verify that the functional configuration is correct by using the Ansible custom command
|
トピック 6 | - Understand and use basic tools
- System deployment, configuration and maintenance
|
トピック 7 | - Install and configure a compatible control unit
- Create a static host inventory file
- Create a configuration file
|
トピック 8 | - To protect sensitive data, use Ansible Vault in the user guide
- Take advantage of additional enhancements
|
トピック 9 | - Configure local storage
- Operating system
|
トピック 10 | - Create simple shell scripts that run custom Ansible commands
- Administrative work scenario
|
トピック 11 | - Unable to create drama and playbook
- Install the required package
- Parallel management
|
トピック 12 | - Create an instruction manual to configure the system for a specific situation
- Learn to work with frequently used Ansible units
|
トピック 13 | - Use the variable to get the results of the command run
- Use the conditions to control the progress of the game
|
参照:https://www.redhat.com/en/services/training/ex294-red-hat-certified-engineer-rhce-exam-red-hat-enterprise-linux-8
TopExamは君にEX294日本語の問題集を提供して、あなたの試験への復習にヘルプを提供して、君に難しい専門知識を楽に勉強させます。TopExamは君の試験への合格を期待しています。
安全的な支払方式を利用しています
Credit Cardは今まで全世界の一番安全の支払方式です。少数の手続きの費用かかる必要がありますとはいえ、保障があります。お客様の利益を保障するために、弊社のEX294日本語問題集は全部Credit Cardで支払われることができます。
領収書について:社名入りの領収書が必要な場合、メールで社名に記入していただき送信してください。弊社はPDF版の領収書を提供いたします。
弊社は無料RedHat EX294日本語サンプルを提供します
お客様は問題集を購入する時、問題集の質量を心配するかもしれませんが、我々はこのことを解決するために、お客様に無料EX294日本語サンプルを提供いたします。そうすると、お客様は購入する前にサンプルをダウンロードしてやってみることができます。君はこのEX294日本語問題集は自分に適するかどうか判断して購入を決めることができます。
EX294日本語試験ツール:あなたの訓練に便利をもたらすために、あなたは自分のペースによって複数のパソコンで設置できます。
一年間の無料更新サービスを提供します
君が弊社のRedHat EX294日本語をご購入になってから、我々の承諾する一年間の更新サービスが無料で得られています。弊社の専門家たちは毎日更新状態を検査していますから、この一年間、更新されたら、弊社は更新されたRedHat EX294日本語をお客様のメールアドレスにお送りいたします。だから、お客様はいつもタイムリーに更新の通知を受けることができます。我々は購入した一年間でお客様がずっと最新版のRedHat EX294日本語を持っていることを保証します。
弊社のRedHat EX294日本語を利用すれば試験に合格できます
弊社のRedHat EX294日本語は専門家たちが長年の経験を通して最新のシラバスに従って研究し出した勉強資料です。弊社はEX294日本語問題集の質問と答えが間違いないのを保証いたします。
この問題集は過去のデータから分析して作成されて、カバー率が高くて、受験者としてのあなたを助けて時間とお金を節約して試験に合格する通過率を高めます。我々の問題集は的中率が高くて、100%の合格率を保証します。我々の高質量のRedHat EX294日本語を利用すれば、君は一回で試験に合格できます。