/ansible-role-install-fpm

Ansible Role: Install FPM - packaging made simple

Apache License 2.0Apache-2.0

Ansible Role: Install FPM - packaging made simple

License Ansible Galaxy CircleCI Ansible Galaxy Quality

Install FPM for Linux.

Work on

  platforms:
    - name: Fedora
      versions:
        - 33
    - name: Ubuntu
      versions:
        - xenial
        - bionic
        - focal
    - name: Debian
      version:
        - oldstable
        - stable
    - name: EL (CentOS)
      versions:
        - 8
    - name: opensuse
      vesrion:
        - tumbleweed
        - 15.2
    # - name: ArchLinux
    #   version:
    #     - any

Requirements

None.

Role Variables

# "User install" is default, because https://ru.stackoverflow.com/a/907613/191416
# fpm_method_install: system
fpm_method_install: user

# fpm_docs_install: no
fpm_docs_install: yes

# By default, the latest version from https://rubygems.org/gems/fpm is installed.
# fpm_version: x.y.z

Dependencies

None.

Example Playbooks

Install latest FPM with help files in ~/.gem on Linux:

install-fpm.yml:

- name: Install FPM
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - ansible-role-install-fpm
  tasks:

Install FPM v1.10.0 without help files on Linux:

install-fpm.yml:

- name: Install FPM
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - ansible-role-install-fpm
  vars:
    fpm_version: 1.10.0
    fpm_docs_install: no
  tasks:

License

Apache License, Version 2.0

Author Information

don Rumata

TODO

  • Add tests.
  • Add more tests.
  • Add ArchLinux support.