tecris.ansible-maven
Rôle Ansible Maven
Changements liés au nouveau https://galaxy.ansible.com (nov. 2023)
Dehors de mon contrôle, avec l'importation du rôle v3.9.6
, le nom a changé (de tecris.maven
à tecris.ansible-maven
) car https://galaxy.ansible.com a été réincarné.
Installation
$ ansible-galaxy install tecris.ansible-maven # dernière version
$ ansible-galaxy install tecris.ansible-maven,17.10.28 # version spécifique
Exemple de Playbook
- hosts: all
roles:
- { role: tecris.ansible-maven, maven_major: 3, maven_version: 3.9.6, maven_home_parent_directory: /opt }
Variables du rôle
Variable | Valeur par défaut | Description |
---|---|---|
maven_major | 3 | VERSION MAJEURE version |
maven_version | 3.9.6 | Numéro de version |
maven_home_parent_directory | /opt | Répertoire parent de MAVEN_HOME |
maven_download_url | http://www.apache.org/dist/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz | Si vous utilisez un miroir/proxy (voir ansible.builtin.get_url) |
maven_download_username | voir le paramètre url_username | |
maven_download_password | voir le paramètre url_password |
Tests
- Voir molecule
- Comment faire
- Tâches préliminaires
- Construire l'image Docker de molecule
# git clone https://github.com/tecris/dockerfiles # cd dockerfiles/molecule/6 # ./build_image.sh
- Construire l'image de test (exemple pour
debian 10
)- Étape 1
# git clone https://github.com/tecris/dockerfiles # cd dockerfiles/systemd # ./build_image.sh debian 10
- Étape 2 (ajouter jdk à l'image de test)
# git clone https://github.com/tecris/ansible-maven # cd ansible-maven/dockerfiles # ./build_image.sh debian 10
- Étape 1
- Construire l'image Docker de molecule
- Exécuter le test molecule
# git clone https://github.com/tecris/ansible-maven # cd ansible-maven # ./run_molecule.sh # TAG=23.08.04 molecule test -s debian_10
- Tâches préliminaires
Entretien
ansible-galaxy role import --token=le_token tecris ansible-maven
https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/userguide/#importing-roles
Installer
ansible-galaxy install tecris.ansible-maven
Licence
other
Téléchargements
23.9k
Propriétaire