Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Ansible Interview Questions and Answers
Home
Questions
Ansible
0
votes
How can you use the Ansible module “template” to generate a configuration file on a target machine?
answered
May 19
in
Ansible
by
rajeshsharma
ansible
module
template
0
votes
How can you use the Ansible module “cron” to create a new cron job on a target machine?
answered
May 19
in
Ansible
by
rajeshsharma
ansible
module
cron
0
votes
How can you use the Ansible module “shell” to run a shell command on a target machine?
answered
May 19
in
Ansible
by
rajeshsharma
ansible
module
shell
0
votes
How can you use the Ansible module “yum” to update all packages on a Red Hat-based target machine?
answered
May 19
in
Ansible
by
rajeshsharma
ansible
module
yum
0
votes
How can you use the Ansible module “apt” to install a package on a Debian-based target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
apt
0
votes
How can you use the Ansible module “user” to create a new user on a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
user
0
votes
How can you use the Ansible module “lineinfile” to replace a line in a file on a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
lineinfile
0
votes
How can you use the Ansible module “file” to create a symbolic link on a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
file
0
votes
How can you use the Ansible module “wait_for” to wait for a port to be open on a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
wait_for
to
wait
0
votes
How can you use the Ansible module “lineinfile” to add a line to a file on a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
lineinfile
0
votes
How can you use the Ansible module “file” to change the owner and group of a file on a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
file
0
votes
How can you use the Ansible module “copy” to copy a file from the control machine to a target machine?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
copy
0
votes
How can you use the Ansible module “uri” to send a POST request to a web service?
answered
May 16
in
Ansible
by
rajeshsharma
ansible
module
uri
0
votes
How can you use the Ansible module “debug” to display a variable’s value during a playbook run?
answered
May 16
in
Ansible
by
rajeshsharma
debug
to
display
0
votes
How can you use the Ansible module “cron” to remove a cron job from a target system?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
cron
0
votes
How can you use the Ansible module “apt” to install a package on a target system?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
apt
0
votes
How can you use the Ansible module “yum” to install a package on a target system?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
yum
0
votes
How can you use the Ansible module “lineinfile” to remove a line from a file?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
lineinfile
0
votes
How can you use the Ansible module “file” to create a directory on a target system?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
file
0
votes
How can you use the Ansible module “copy” to copy a file to a target system?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
copy
0
votes
How can you use the Ansible module “assert” to test a condition in an Ansible playbook?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
assert
0
votes
What is the purpose of the Ansible module “setup”?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
setup
0
votes
How can you use the Ansible module “service” to start a service on a target system?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
service
0
votes
How can you use the Ansible module “lineinfile” to add a new line to a file?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
lineinfile
0
votes
What is the purpose of the Ansible module “wait_for”?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
wait_for
0
votes
How can you use the Ansible module “uri” to make an HTTP request?
answered
May 15
in
Ansible
by
SakshiSharma
ansible
module
uri
0
votes
How can you use the Ansible module “set_fact” to create a new variable?
answered
May 14
in
Ansible
by
Robin
ansible
module
set_fact
0
votes
What is the purpose of the Ansible module “fail”?
answered
May 14
in
Ansible
by
Robin
ansible
module
fail
0
votes
How can you use the Ansible module “debug” to display the value of a variable?
answered
May 14
in
Ansible
by
Robin
ansible
module
debug
0
votes
How can you use the Ansible module “template” to create a new file on a target system?
answered
May 14
in
Ansible
by
Robin
ansible
module
template
To see more, click for all the
questions in this category
.
...