Skip to content

Template for Ansible role with Molecule and Testinfra for testing

License

Notifications You must be signed in to change notification settings

tgagor/ansible-role-template-with-molecule-tests

Repository files navigation

Ansible role for XXX

This role will install XXX on compatible platforms.

Molecule Test Ansible Role Ansible Quality Score Ansible Role

Use command below to get role id:

ansible-galaxy info tgagor.spotify | grep -E 'id: [0-9]' | awk {'print $2'}

Supported systems

  • Ubuntu
    • 18.04
    • 20.04
    • 20.10
    • 21.04
  • Linux Mint
    • 19.3
    • 20
    • 20.1
  • Debian
    • 9 (stretch)
    • 10 (buster)
    • 11 (bullseye)
  • CentOS
    • 7
    • 8XXX
  • Fedora
    • 32
    • 33
    • 34

Requirements

As XXX's repo is available via HTTPS, role will install apt-transport-https if it's not present in the system.

Role variables

Role doesn't require any custom variables.

Dependencies

There are no dependencies on other roles.

Example playbook

Just add to you playbook, to install it on localhost:

- hosts: localhost
  connection: local
  gather_facts: true
  become: yes
  tasks:
    - name: Install XXX
      include_role:
        name: tgagor.XXX

License


See LICENSE

About

Template for Ansible role with Molecule and Testinfra for testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published