Or... use something like:
pkg: name="{{item}} state=installed
with_items:
- {{devtools}}
and then have devtools be a list of the relevant packages set in group_vars
or some included file based on OS
On Thu, Jul 28, 2016 at 12:58 PM, Mark Janssen wrote:
> Add a conditional on your current tas
Add a conditional on your current task to only run on centos/redhat,
something along the lines of:
when: ansible_os_family == "RedHat"
And then make a second task:
tasks:
- name: Install Development Tools, git, curl, htop
apt: name={{ item }} state=present
with_items:
- build-esse
Hi,
I am new to Ansible and I am working a playbook that requires to have
Development-tool installed on on CentOS based server. However, I was
thinking about writing playbook that will be applicable to Debian-based OSs
such as Ubuntu for example. What would be the module that can install
Devel