Giter Site home page Giter Site logo

ansible-role-package_update's Introduction

Ansible Role: package_update

An ansible role to update all packages (multiplatform)

Requirements

Supported platforms

  • Archlinux
  • Debian
  • FreeBSD
  • NetBSD
  • OpenBSD
  • RedHat
  • Suse
  • Kali GNU/Linux

Role Variables

OS related variables

The following variables are set by the role.

  • freebsd_running_jails: List with the running FreeBSD jails.

Playbook related variables

  • package_update: "name space"
    • freebsd: "freebsd config"
      • get_running_jails: no | yes (default) set the freebsd_running_jails variable.
      • host: no | yes (default) update the host system
      • jails: Array of jails to update, freebsd_running_jails by default.

Dependencies

None

Example Playbooks

Upgrade

---
- name: update packages
  hosts: all
  become: true
  roles:
    - stafwag.package_update

Update only the FreeBSD host systems.

---
- name: update packages
  hosts: all
  become: true
  roles:
    - role: stafwag.package_update
      vars:
        package_update:
          freebsd:
            get_running_jails: no
            jails: []

Update only the running jails on FreeBSD systems.

---
- name: update packages
  hosts: all
  become: true
  roles:
    - role: stafwag.package_update
      vars:
        package_update:
          freebsd:
            host: no

Update a jail on a FreeBSD system.

---
- name: update packages
  hosts: rataplan
  become: true
  roles:
    - role: stafwag.package_update
      vars:
        package_update:
          freebsd:
            host: no
            jails:
              - stafmail

License

MIT/BSD

Author Information

Created by Staf Wagemakers, email: [email protected], website: http://www.wagemakers.be

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.