How can one generate encrypted passwords for the user module?
Answer / Rajeev Shankhdhar
To create a handler with multiple tasks, define the tasks that should be executed when the handler is called as a list in the `tasks` section of the handler definition. Here's an example:nn- name: My Handlern handlers:n my_handler:n tasks:n - name: Task 1n command: task1_commandn - name: Task 2n command: task2_command
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what are playbooks in ansible? Explain with some examples.
How do I get ansible to reuse connections, enable kerberized ssh, or have ansible pay attention to my local ssh config file?
Does ansible support hardware provisioning?
How can you handle different machines needing different user accounts or ports to log in with?
How do I write an ansible handler with multiple tasks?
What is ansible role and how are they different from the playbook?
How do I access a variable of the first host in a group?
Is it possible to build our modules in ansible?
How do I generate crypted passwords for the user module?
What are the ansible modules? Explain the different types.
How to keep secret data in a playbook?
Can you write a simple playbook to install nginx on a host machine?