Giter VIP home page Giter VIP logo

ansible-role-firmware-pcengines-apu's Introduction

Build Status

Ansible Role: firmware-pcengines-apu

| This role adds the possibility to do firmware updates on PC Engines devices.

It checks if the firmware is already on the target version and flashes the firmware if required. Parameters for automatic reboot and enforcement are optionally available.

For an overview about the available firmware please have a look at PC Engines - Github.

Motivation

Automating firmware updates is essential to a secure environment.

Supported Devices

Installation

Install from Ansible Galaxy

ansible-galaxy install while_true_do.firmware_pcengines_apu

Install from Github

git clone https://github.com/while-true-do/ansible-role-firmware-pcengines-apu.git while_true_do.firmware_pcengines_apu

Requirements

Used Modules:

Dependencies

This role depends on the below roles. You have to install them:

ansible-galaxy install -r requirements.yml

Role Variables

# defaults/main.yml for firmware_pcengines_apu

wtd_firmware_pcengines_apu_packages:
 - dmidecode
 - flashrom

# target BIOS version
# example: "v4.8.0.1"
wtd_firmware_pcengines_apu_bios_version: ""

# enforce flashing regardless of version
wtd_firmware_pcengines_apu_force_flash: false

# reboot after flash
wtd_firmware_pcengines_apu_autoreboot: false

Example Playbook

Simple Example:

- hosts: servers
  roles:
    - { role: while_true_do.firmware_pcengines_apu }

Advanced Example:

- hosts: servers
  roles:
    - { role: while_true_do.firmware_pcengines_apu, wtd_firmware_pcengines_apu_autoreboot: true, wtd_firmware_pcengines_apu_force_flash: true }

Testing

All tests are located in test directory.

Basic testing:

bash ./tests/test-spelling.sh
bash ./tests/test-ansible.sh

Contribute / Bugs

Thank you so much for considering to contribute. Every contribution helps us. We are really happy, when somebody is joining the hard work. Please have a look at the links first.

License

This work is licensed under a BSD License.

Author Information

Site: while-true-do.org

Mail: [email protected]

ansible-role-firmware-pcengines-apu's People

Contributors

donvipre avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-role-firmware-pcengines-apu's Issues

use generic reboot role

Type of Report

enhancement

Actual behaviour

Currently if I want to reboot not only after the firmware_pcengines_apu role but another role I'll have to implement two tasks in each role and the host will be rebooted twice.

Expected behaviour

There are two scenarios:

  1. two or more tasks should run before one final reboot
  2. after the reboot there should be additional tasks

Both scenarios are now possible.
2. can be easily achieved with the meta: flush_handlers task.

Specifications

Attachments

Rework privilege escalation

Type of Report

enhancement

Actual behaviour

role needs to be escalated completely before it will work

Expected behaviour

We should decide for each task if privilege escalation is necessary, or not.

Specifications

Attachments

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.