Quantcast
Channel: How to unify package installation tasks in ansible? - Server Fault
Browsing all 7 articles
Browse latest View live

Answer by Zach Smith for How to unify package installation tasks in ansible?

The answers above all seem to link to broken pages. This looks like the correct URL: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/package_module.html

View Article



Answer by Tvartom for How to unify package installation tasks in ansible?

From Ansible 2.0 there is the new Package-modul.http://docs.ansible.com/ansible/package_module.htmlYou can then use it like your proposal:- name: install the latest version of Apache package:...

View Article

Answer by xddsg for How to unify package installation tasks in ansible?

You can abstract out package managers via facts- name: Install packages with_items: package_list action: "{{ ansible_pkg_mgr }} state=installed name={{ item }}"All you need is some logic that sets...

View Article

Answer by David Vasandani for How to unify package installation tasks in...

Check out Ansible's documentation on Conditional Imports.One task to ensure that apache is running even if the service names is different across each OS.---- hosts: all remote_user: root vars_files: -...

View Article

Answer by TrinitronX for How to unify package installation tasks in ansible?

Update: As of Ansible 2.0, there is now a generic & abstracted package moduleUsage Examples:Now when the package name is the same across different OS families, it's as simple as:---- name: Install...

View Article


Answer by Mxx for How to unify package installation tasks in ansible?

You do not want to do that because certain package names differ between distros.For example on RHEL-related distros the popular web server package is named httpd, where as on Debian-related distros...

View Article

How to unify package installation tasks in ansible?

I am starting with ansible and will use it, among others, to install packages on several Linux distros.I see in the docs that the yum and apt commands are separated - what would be the easiest way to...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images