apt-get wrapper to install precise versions of exactly pointed dependencies: libxx=1.2.3.
Against expectations, apt-get in this case installs most recent avaliable version of libxx. Sometimes this is not desirable. For example, if you distribute your software to servers with packages, and can not split testing/stable package versions by different repositories.
Usage: apt-strict install|install-only-new|resolve|resolve-only-new --any-apt-get-options package1 package2=version
All apt-get options are supported, also it has --help
and --debug
.
Bash completion included.
- apt_strict: name=foo state=present
Options have same meaning as in apt module:
- name
- state: present(default)|latest
- default_release
- install_recommends
- force
- dpkg_options
Does not support ansible-playbook --check
. Since ansible 2.1, you can use this trick to avoid running task in --check
mode: when: not ansible_check_mode
You can install ansible module via brew (without any apt stuff):
brew tap apt-strict/tap [email protected]:selivan/apt-strict.git
brew install apt-strict
# ensure /usr/local/share/ansible in 'library =' section of your ansible.cfg
http://apt.alioth.debian.org/python-apt-doc/
http://fahdshariff.blogspot.ru/2011/04/writing-your-own-bash-completion.html
http://docs.ansible.com/developing_modules.html
P.S. If this code is useful for you - don't forget to put a star on it's github repo.