Ansible role install some base packages.
Somes packages like ntp are not configured in this role. I made another role to install and configure ntp.
This role need to be include in a playbook.
Call this Galaxy role like this:
ansible-galaxy install -r requirements.yml
Inside requirements.yml
# from GitHub, overriding the name and specifying a specific tag
- src: git+ssh:git@github.com/redbeard28/ansible-role-basetools.git
version: master
name: basetools
More info => Ansible Docs
- Ansible 2.9+
---
# Put role variables
none
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: all
roles:
- { role: basetools, tags: mytags }
You can use molecule to test this role.
image=debian tag="buster" molecule converge
image=debian tag="buster" molecule verify
Jeremie CUADRADO¹ from REDBEARD-CONSULTING