Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Ansible Collections

In diesem Vortrag wollen wir euch ein Einstieg in Ansible Collections geben. Was sind sie, wie nutzt man sie und wie erstellt ihr welche.

Ansible ist ein Open-Source-Automatisierungstool.

Es vereint Softwareverteilung, die Ausführung von Ad-hoc-Befehlen und das Management von Software Konfigurationen.

Ansible Collections bieten die Möglichkeit, dezentral Rollen, Module und Plugins zu schreiben und diese in anderen Projekten wieder einzubinden.

2020 wurden mit Ansible 2.10 Fully Qualified Collection Names (FQCN) eingeführt.
Dies ermöglicht es, Ansible Module, Filter, Plugins und Rollen in seine Projekte zu integrieren und mit der Community zu teilen.

Diese Ansible Collections werden meist auf galaxy.ansible.com geteilt.

Anslyse der Ansible Collection
l3d.git (galaxy.ansible.com/l3d/git)
und wie Sie aufgebaut ist.

Aufbau der Collection: . ├── changelog ├── CHANGELOG.md ├── CHANGELOG.rst ├── galaxy.yml ├── LICENSE ├── meta │   └── runtime.yml ├── README.md ├── requirements.txt └── roles ├── forgeo_runner │   └── … └── gitea    └──…
galaxy.yml: namespace: l3d version: 1.1.6 readme: README.md authors: - L3D <l3d@c3woc.de> license: - MIT tags: - gitea - linux dependencies: "community.general": ">=9.4.0" repository: https://github.com/roles-ansible/ansible_collection_git.git homepage: https://ansible.l3d.space/#l3d.git
Aufbau der Collection: . ├── changelog ├── CHANGELOG.md ├── CHANGELOG.rst ├── galaxy.yml ├── LICENSE ├── meta │   └── runtime.yml ├── README.md ├── requirements.txt └── roles ├── forgeo_runner │   └── … └── gitea    └──…
l3d.git.gitea . ├── defaults │   ├── forgejo.yml │   ├── gitea.yml │   └── main.yml ├── files │   └── extra_links_footer.tmpl ├── handlers │   └── main.yml ├── LICENSE ├── meta │   └── main.yml ├── README.md ├── requirements.yml ├── tasks │   └── … ├── templates │   ├── fail2ban │   │   ├── filter.conf.j2 │   │   └── jail.conf.j2 │   ├── gitea.ini.j2 │   └── gitea.service.j2 └── vars     ├── debian.yml     ├── fork_forgejo.yml     ├── fork_gitea.yml     ├── main.yml     ├── os_fallback_defaults.yml     ├── redhat.yml     └── suse.yml
l3d.git.gitea └── tasks ├── backup.yml ├── configure.yml ├── create_user.yml ├── customize_footer.yml ├── customize_logo.yml ├── customize_public_files.yml ├── directory.yml ├── fail2ban.yml ├── gitea_secrets.yml ├── install_forgejo.yml ├── install_gitea.yml ├── install_systemd.yml ├── jwt_secrets.yml ├── local_git_users.yml ├── main.yml ├── set_forgejo_version.yml ├── set_gitea_version.yml └── versioncheck.yml
1 2 3 4 5 6 7 8 9 10 --- - name : Perform optional versionscheck ansible.builtin.include_tasks : file : "versioncheck.yml" when : submodules_versioncheck | bool - name : Gather installed packages for checks later on ansible.builtin.package_facts : manager : auto
10 12 13 14 15 16 17 18 19 20 - name : Prepare gitea/forgejo variable import block : - name : Gather variables for gitea or forgejo ansible.builtin.include_vars : file : "{{ lookup('first_found', gitea_fork_variables) }}" rescue : - name : Gitea/Forejo import info

Use a spacebar or arrow keys to navigate.
Press 'P' to launch speaker console.