I have the following roles structure: $ tree roles roles ├── user │ └── tasks │ └── main.yaml └── validation └── task ...
I have the following roles structure: $ tree roles roles ├── user │ └── tasks │ └── main.yaml └── validation └── task ...
I wanna apply role using conditional statement by centos version(7, 8) in yml There are tons of examples of conditional statement in the playbook. H ...
With loop or other, I can't see how to use the replace or inline module to achieve that. The orinal file contains this line I only want to modify ...
Does Ansible have naming rules for roles and collections regarding the use of - (dash) and _ (underscore)? I noticed that since around 2019, geerl ...
I'm installing an ansible role with: ansible-galaxy install geerlingguy.java But this command install the latest version. I need to install an old ...
I am trying to extract the status (http) (Enabled/ Disabled) for each server and display it in the logs. It is able to check for http status but when ...
I got collection that has structure according to using collections if I wan to use that roles all I have to do is include_role with fqdn but it ...
I have a custom module that resides in the library/ directory of my Ansible role. I can call the module from within my playbook, and the code executes ...
I have created several roles with ansible-galaxy init my_role and after a while I realized a .travis.yml file was created automatically for a basic sy ...
I have one ansible role with this structure: and prepare-workstation.yaml content is: I want build-nginx-proxy role run with nginx.yml not tasks ...
I have list of variable like, item-1, item-22, item-3, item-99 i need to display as result of ansible playbook in following form item-1, item-3, item ...
Based on ansible documentation for roles I can make multiple role entry points by creating files: And I can add the default main.yml role using thi ...
I am having a hard time getting to know how to create Ansible roles that are following the best practices according to documentation. The following us ...
I have 2 ansible roles. rundeck_install rundeck_app rundeck_install role install the rundeck community edition. rundeck_app role installs jdk ...
My ENV is DEV while the instance_name is myapp44 Thus, i want the role for myapp7 to skip as the when condition fails. Below is my role that works f ...
I want a variable on Ansible to be active or passive depending on the condition. I am using the role "davidwittman.redis". I'm setting up a redis clu ...
I want to split my tasks/main.yml into different files in my Ansible role. With "defaults/" and "vars/", ansible supports the creation of a "main" dir ...
I'm new to Ansible and currently building out a few plays to perform common tasks such as performing pre & post installs for our software in dev/t ...
I am trying to convert my pile of Ansible playbooks, roles, tasks, etc into a formalized Ansible Collection to better support re-use and modularity. ...
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'kubernetes' ...