<< Prev Question Next Question >>

Question 65/123

Run a task on a different host than the one defined in the inventory using delegate_to.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (123q)
Question 1: Filter a list of dictionaries to include only those with a s...
Question 2: Split a string into a list of words using a filter....
Question 3: Run a playbook with a different Ansible configuration file i...
Question 4: Use a source control credential in a project in Automation C...
Question 5: Create an advanced inventory that includes both static and d...
Question 6: Create a playbook to dynamically fetch and use host variable...
Question 7: Configure Automation Controller to authenticate with a priva...
Question 8: Inspect the logs of an EE build process....
Question 9: Write a Dockerfile for building the EE....
Question 10: Run a playbook with custom variables passed at runtime in Au...
Question 11: Create a directory structure where host variables for web1 a...
Question 12: Run a command on the control node but store the result in th...
Question 13: Install the collection locally from the .tar.gz file....
Question 14: Write a playbook to check if a string is alphanumeric....
Question 15: Extract all subnets from a list of CIDR notations using a fi...
Question 16: Update an installed collection to the latest version....
Question 17: A teammate accidentally pushed sensitive data to the reposit...
Question 18: Configure the inventory so that web1 has both IPv4 and IPv6 ...
Question 19: Merge the feature-update branch into the main branch to inte...
Question 20: You need to revert the last commit on the main branch withou...
Question 21: Build the execution environment image using Podman....
Question 22: Override the SSH port for web1 in the host_vars/web1.yml fil...
Question 23: Use group variables in a playbook to configure web servers....
Question 24: Create an inventory that uses AWS EC2 tags to group hosts....
Question 25: Push the EE image to a private container registry....
Question 26: Sync dynamic inventory with Automation Controller....
Question 27: Configure your Git username as Developer and email as develo...
Question 28: Write a playbook to run a task as a non-root user and use be...
Question 29: Split db1 variables into multiple files: db1_connection.yml ...
Question 30: Validate the configuration of group_vars for web_servers....
Question 31: Extract all IP addresses from a list containing mixed data u...
Question 32: Write a playbook to populate a variable with the output of a...
Question 33: Deploy an EE to Kubernetes for distributed execution....
Question 34: Use advanced inventory variables in a playbook....
Question 35: Use a special variable to set a different remote user for we...
Question 36: Push your changes from the feature-update branch to the remo...
Question 37: Convert a list of dictionaries into a single dictionary....
Question 38: Write a test playbook to call the custom module hello.py....
Question 39: Use ansible-inventory to validate the syntax of your static ...
Question 40: Clone a private repository using the source control credenti...
Question 41: Trigger a playbook run using the Automation Controller API....
Question 42: Write a playbook to execute tasks on a host only if the vari...
Question 43: Configure Automation Controller to use custom inventory scri...
Question 44: Run a delegated task to back up a database on a different ho...
Question 45: Sort a list of numbers in descending order using a filter....
Question 46: Analyze logs of an EE job run in Automation Controller....
Question 47: Use a survey to capture runtime inputs for a job template....
Question 48: Use the lookup plugin to read multiple lines from a file int...
Question 49: Assign multiple EEs to a project in Automation Controller....
Question 50: Add dependencies to your collection's galaxy.yml file, such ...
Question 51: Pull an EE from Automation Hub and use it in Automation Cont...
Question 52: Retrieve and display a list of available files in a director...
Question 53: Test if the EE has the required Python packages installed....
Question 54: Set up a CI/CD pipeline to build and upload an EE....
Question 55: Stash uncommitted changes to the feature-update branch tempo...
Question 56: Create a custom plugin for generating inventory....
Question 57: Sort a dictionary by its keys using a filter and display the...
Question 58: Write a playbook to execute a task based on a host's operati...
Question 59: Create a directory structure for building an execution envir...
Question 60: Create a static inventory with groups web and db, each conta...
Question 61: Use delegation to restart a service on a specific host (db1)...
Question 62: Test the machine credentials by connecting to a host....
Question 63: Sync an AWS EC2 inventory plugin in Automation Controller....
Question 64: Set up notifications for job completions in Automation Contr...
Question 65: Run a task on a different host than the one defined in the i...
Question 66: Run a playbook on web1 with a specific ansible_connection ty...
Question 67: Test the inventory in Automation Controller....
Question 68: You are asked to pull the latest changes from the main branc...
Question 69: Use delegation to upload a file to an S3 bucket from the con...
Question 70: Validate the AWS inventory plugin....
Question 71: Set up multiple files for web1 in host_vars, splitting varia...
Question 72: Configure a playbook to fail if the http_port variable is un...
Question 73: Make a file named config.txt in the cloned repository, add s...
Question 74: Validate the EE used in a job template....
Question 75: Automate the update process for EEs in Automation Controller...
Question 76: Gather facts for web1 but delegate the task to the control n...
Question 77: Configure a playbook to use the inventory IP address directl...
Question 78: Create an inventory plugin configuration for AWS....
Question 79: Set up a directory for multiple host variable files for all ...
Question 80: Automate inventory updates with a cron job....
Question 81: Create a playbook to run only tasks tagged as install....
Question 82: Fetch the latest updates from the remote repository without ...
Question 83: Use lookup with with_items to iterate over multiple external...
Question 84: Create a playbook that retrieves the value of http_port for ...
Question 85: Retrieve data from an environment variable using lookup....
Question 86: Check if a string starts with a specific prefix....
Question 87: Configure a playbook to dynamically retrieve the ansible_hos...
Question 88: Set up web2 to use a proxy server for all Ansible tasks....
Question 89: Use ansible_facts to display the OS distribution of web1....
Question 90: Set up an inventory where web1 and web2 belong to staging, w...
Question 91: Write a playbook to sort a dictionary by its values....
Question 92: Create a playbook to conditionally execute a task based on t...
Question 93: Generate a list of numbers from 1 to 10 using filters....
Question 94: Create a playbook to compute the sum of a list of numbers....
Question 95: Set up multiple environment inventories (dev and prod) with ...
Question 96: Test the connectivity of managed nodes from within the EE....
Question 97: Test the webserver role from the collection using ansible-pl...
Question 98: Convert all keys in a dictionary to uppercase....
Question 99: You realize you need to modify the config.txt file to add a ...
Question 100: Validate the EE configuration using Ansible Builder....
Question 101: Verify that an EE supports a specific Ansible version....
Question 102: Use failed_when to define custom failure conditions for a ta...
Question 103: Test a custom inventory plugin....
Question 104: Create a playbook to skip tasks for hosts with ansible_distr...
Question 105: Upload the EE to Red Hat Automation Hub....
Question 106: Check if a variable is a list and fail if it is not....
Question 107: Add documentation for your collection in a README.md file....
Question 108: Add a custom script to the EE image....
Question 109: Test if the EE has all required collections installed....
Question 110: Configure db1 to use a specific shell for commands via a hos...
Question 111: Secure the database credentials using Ansible Vault....
Question 112: Validate if a given variable contains a valid MAC address us...
Question 113: Add a group variable in an advanced inventory....
Question 114: Set up a database query as a dynamic inventory source....
Question 115: Validate if a string matches a specific regular expression....
Question 116: Extract all lines from a file that match a given string usin...
Question 117: Retrieve the hostname of a managed node using the ansible_ho...
Question 118: Transform a list of strings to uppercase using a filter and ...
Question 119: Publish the collection to a private Automation Hub repositor...
Question 120: Configure a host db1 to use a specific username dbadmin and ...
Question 121: Find the longest string in a list using filters....
Question 122: Set up a cron job to sync a dynamic inventory script periodi...
Question 123: Test Automation Controller integration with Automation Hub....