Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marverix/ansible-role-packer

Ansible role that installs Packer on Linux
https://github.com/marverix/ansible-role-packer

ansible ansible-galaxy-role ansible-role hashicorp packer

Last synced: 11 days ago
JSON representation

Ansible role that installs Packer on Linux

Awesome Lists containing this project

README

        

# Ansible Role: Packer

[![Build Status](https://travis-ci.com/marverix/ansible-role-packer.svg?branch=master)](https://travis-ci.com/marverix/ansible-role-packer)
![Ansible Quality Score](https://img.shields.io/ansible/quality/48226)
![Ansible Role](https://img.shields.io/ansible/role/48226)
[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](LICENSE)

Ansible role that installs Packer on Linux.

## Features

- ✔️ Installing Packer
- Does the package's checksum check
- You can define which version should be installed
- ✔️ Tested with Molecule Verify

## Supported Platforms

- ✔️ Ubuntu 16.04 (Xenial)
- ✔️ Ubuntu 18.04 (Bionic)
- ✔️ Ubuntu 20.04 (Focal)
- ✔️ CentOS 7
- ✔️ CentOS 8

## Requirements

None

## Role Variables

Variable | Description | Default Value
--- | --- | ---
`packer_version` | Version of Packer to be installed | `1.7.2`
`packer_package_checksum` | SHA256 checksums for packages | *checksum for 1.7.2 version*

## Dependencies

None

## Example Playbook

1. The simplest one

```yml
---
- hosts: all
roles:
- marverix.packer
```

1. Install Packer 1.1.1

```yml
---
- hosts: all
roles:
- role: marverix.packer
vars:
packer_version: 1.1.1
packer_package_checksum: e407566e2063ac697e0bbf6f2dd334be448d58bed93f44a186408bf1fc54c552
```

Note: Here is a list of all released Packer versions https://releases.hashicorp.com/packer/

## License

ISC