Skip to content

konsumate/ansible_apt_versions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Ansible apt_versions

This action modules creates a new ansible fact apt_versions and populates it with a list of all installed packages + the version number in different formats.

You can use this module to weave logic in playbooks without executing command or shell actions everywhere.

Example

- name: Gather facts
  action: apt_versions

- name: Conditional
  action: debug msg="Apache version is > 2.2"
  when: apt_versions.apache2.simple > "2.2"

List of variables

  • apt_versions.{{package}}.version
  • apt_versions.{{package}}.major
  • apt_versions.{{package}}.minor
  • apt_versions.{{package}}.simple

About

Creates a new `apt_versions` fact for ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%