ansible-roles/apt
Jérémy Lecour b15b06d458 add name for some fail modules 2017-11-21 10:17:46 +01:00
..
defaults apt: don't upgrade by default 2017-11-15 18:25:38 +01:00
files clean gpg key 2017-09-01 02:44:53 +02:00
meta Rename role "apt-repositories" to "apt" 2017-07-19 08:56:46 +02:00
tasks add name for some fail modules 2017-11-21 10:17:46 +01:00
templates Rename role "apt-repositories" to "apt" 2017-07-19 08:56:46 +02:00
tests Rename role "apt-repositories" to "apt" 2017-07-19 08:56:46 +02:00
.kitchen.yml Rename role "apt-repositories" to "apt" 2017-07-19 08:56:46 +02:00
README.md extract APT configuration into apt role 2017-10-10 16:34:53 +02:00

README.md

apt

A few APT related operations, like easily install backports of change components for repositories.

Tasks

Tasks are extracted in several files, included in tasks/main.yml :

  • backports.yml : add a sources list for backports ;
  • basics_components.yml : replace components for the basic sources.

Available variables

  • apt_config : customize apt configuration (default: True) ;
  • apt_install_basics : change basic sources components (default: True) ;
  • apt_basics_components : basic sources components (default: main) ;
  • apt_install_backports : install backports sources (default: False) ;
  • apt_backports_components : backports sources (default: main) ;
  • apt_install_evolix_public : install Evolix public repositories (default: True).

Examples

To add "non-free" and "contrib" components to basic sources lists :

{ role: apt,
    apt_install_basics: True,
    apt_basics_components: "main non-free contrib"
}

To install backports sources lists :

{ role: apt,
    apt_install_backports: True
}

To install backports sources lists with "non-free" and "contrib" :

{ role: apt,
    apt_install_backports: True,
    apt_backports_components: "main non-free contrib"
}

To install backports sources lists and have "non-free" and "contrib" for each repository :

{ role: apt,
    apt_install_basics: True,
    apt_basics_components: "main non-free contrib",
    apt_install_backports: True,
    apt_backports_components: "main non-free contrib"
}