Skip to content

amospalla/ansible-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-packages


Description

This role installs packages on Debian, Ubuntu and Centos hosts.

Variables

Optional:

  • packages_ansible_distribution: dictionary of lists defining what OS are managed, any other OS/version combination is ignored:
packages_ansible_distribution:
  Debian:
    - 7
    - 8
  Ubuntu:
    - ...
  CentOS:
    - ...
  • packages: list of dictionaries defining the packages to be installed:
packages:
  - name: logrotate
  - name: vim-enhanced
    Debian:
	  name: vim-nox
	  versions: ['6', '8']
    Ubuntu:
	  disabled: True

In this example:

  • logrotate is installed on every host.
  • vim-enhanced is:
    • installed on all Centos hosts.
    • installed on Debian 6 and 8 using vim-nox name for the package.
    • not installed on an Ubuntu host.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors