Top "Ansible-role" questions

Ansible role is a set of tasks to configure a host to serve a certain purpose like configuring a service, whereby they are defined using YAML files with a predefined directory structure, as part of the provisioning, configuration management, and application-deployment tool Ansible.

Ansible: Can I execute role from command line?

Suppose I have a role called "apache" Now I want to execute that role on host 192.168.0.10 from the command line …

ansible ansible-role
Install multiple yum packages on Centos(node) via Ansible?

Here is the part of YAMLcode that i am trying to run on a node which has operating system, Centos-7...... …

ansible centos7 ansible-role
How to run only one role of an Ansible playbook?

I have a site.yml which imports several playbooks. - import_playbook: webservers.yml - .... Every playbook "calls" several roles: …

ansible ansible-2.x ansible-role
Configure Ansible roles with dependent roles

The problem is best described with an example: There are two roles: mailserver: a basic mail server configuration mailinglist: mailing …

ansible ansible-role
Ignore case sensitivity in Ansible when condition?

I am trying to create an ansible role that depends on other roles only if the hostname of the machine …

ansible ansible-playbook ansible-role
Where to place requirements.yml for Ansible and use it to resolve dependencies?

I am new to ansible and was exploring dependent roles. documentation link What I did not come across the documentation …

ansible ansible-role
Installing NodeJS LTS for Ansible

I'm looking for an appropriate Ansible Role or Ansible YAML file for installing NodeJS LTS on a Ubuntu 16.04.3 xenial system. …

node.js ansible ansible-role
Ansible: execute role only for some hosts

Let's say I have a single playbook with some roles for the installation of an appserver and I like to …

ansible ansible-role
How to split an ansible role's `defaults/main.yml` file into multiple files?

In some ansible roles (e.g. roles/my-role/) I've got quite some big default variables files (defaults/main.yml). I'd …

ansible ansible-role file-organization
Double with_items loop in ansible

I want to create a double loop in ansible. I have one things like this : userslist: - name: user1 primary : …

ansible ansible-role