Home » RedHat » EX407 » SIMULATION
SIMULATION
Using the Simulation Program, perform the following tasks:
Ad-Hoc Ansible Commands (Number Two) Task:
1. Use the ad-hoc command to make sure php is installed.
2. Use the ad-hoc command to make sure that php is installed and is the latest version.
3. Use the ad-hoc command to make sure that httpd is installed.
4. Use the ad-hoc command to remove httpd from the servers.
Correct Answer: See explanation below.
Explanation/Reference:
Explanation:
1. ansible all -b -m yum -a ‘name=php state=present’
2. ansible all -b -m yum -a ‘name=php state=latest’
4. ansible all -b -m yum -a ‘name=httpd state=absent’
3. ansible all -b -m yum -a ‘name=httpd state=latest’
4. ansible all -b -m yum -a ‘name=httpd state=absent’
Download Printable PDF. VALID exam to help you PASS.
|
|