Skip to content

This Ansible role has very simple goal to just manage defined packages

License

Notifications You must be signed in to change notification settings

isweluiz/ansible-package-debian-manage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role License

ansible_package_debian_manage

Ansible role for managing Debian system packages:

  • install
  • update
  • update security
  • clean
  • remove

Requirements

Only tested with ansible 2.9.6 min version

Role Variables

Available variables are listed below, along with default values vars/main.yml and defaults/main.yml

Other way is define those variable in your group hosts or host vars.

# Install 
# List the packages that should be installed here, one per line. Be sure to remove the '[]'
base_system_packages_install: 
  - doscan
  - ncat
  - nmap

# Remove 
# List the packages that should be removed here, one per line. Be sure to remove the '[]'
base_system_packages_remove: 
  - build-essential
  - gcc-4.8
  - make

# Update 
# List the packages that should be update here, one per line. Be sure to remove the '[]'
base_system_packages_update: []

Dependencies

No dependencies

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
      - { role: isweluiz.ansible-package-manage }

Remember to use tags based on your needs, otherwise we have the tag never with this the task will not run.

  • install
  • update
  • security
  • clean
  • remove

Install

ansible-playbook playbooks/ansible-package.yml -i hosts  -l local -t install

Update

ansible-playbook playbooks/ansible-package.yml -i hosts  -l local -t update

Security

ansible-playbook playbooks/ansible-package.yml -i hosts  -l local -t security

Clean

ansible-playbook playbooks/ansible-package.yml -i hosts  -l local -t clean

Remove

ansible-playbook playbooks/ansible-package.yml -i hosts  -l local -t remove

License

MIT

Author Information

About

This Ansible role has very simple goal to just manage defined packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published