
Развитие Ansible: от фантастического устройства до зрелой экосистемы управления ИТ-инфраструктурой
Ansible - один из самых популярных инструментов автоматизации, но многие до сих пор используют его, ограничиваясь лишь командой ansible-playbook. С 2012 года Ansible вырос из простого инструмента в мощную экосистему, решающую проблемы с зависимостями, тестированием и централизованным управлением. Если вы все еще боретесь с конфликтами версий Python на хосте или пишете Ansible-контент без тестов - эта статья для вас. Мы разберем современный инструментарий Ansible - от Execution Environments и Ansible Navigator до Event Driven Ansible и AWX. Вы узнаете, как эти компоненты превращают Ansible в полноценную платформу автоматизации, готовую справляться как с задачами небольших команд, так и с вызовами крупных компаний. А для начала немного истории, ведь название Ansible пришло к нам прямиком из научной фантастики...
Wer die neueste Version von AWX betreiben möchte, braucht einen Kubernetes Cluster.
Es muss kein richtiger Kubernetes Cluster installiert werden. Ausreichend ist es mit "kind" einen kleinen Cluster aufzubauen.
Mit der Anleitung von mir klappt das Setup, da praxiserprobt.
https://wiki.unixweb.net/books/docker/page/awx-installation-auf-kvm-mit-ubuntu-24042-lts
Now I understand why the project is lagging. There is a big refacto in progress and breaking changes for the next release.
For example, OAuth2 tokens have been removed from the CLI https://github.com/ansible/awx/pull/15647
I've spent the morning to include a patch into a home-made debian package for the Ansible awx.awx collection. My patch[1] is not yet merged upstream so I had to backport to the version we use.
The latest version of AWX has been released more than a year ago. Is the project dead?
I found Squest (https://github.com/HewlettPackard/squest/) recently, which is a self-service portal built on top of #AWX #RedHat #AAP (Ansible Automation Platform). Of course I had to try this out...
@christianhuth put together a Helm chart, while I tried to get upstream's way of deploying to work (they are using an #Ansible playbook-role construct to install this into #Kubernetes).
Here is the first result, the helm-based #vagrant #libvirt setup:
https://codeberg.org/johanneskastl/squest_on_k3s_vagrant_libvirt_ansible
https://github.com/johanneskastl/squest_on_k3s_vagrant_libvirt_ansible
(The ansible branch using upstream's deployment will follow, once I get it working with vagrant-libvirt...)
Have a lot of fun!
Just a big shoutout to #Ansible and #AWX for being able to manage a AWX instance using Ansible.
The instance is running in #Kubernetes, managed by #ArgoCD. But the inner configuration of AWX (LDAP, Teams, Organisations, Permissions, Templates, Projects, Inventories, Credentials) needs to be managed,too. That is where Ansible comes in.
Next week I will once again have a AWX instance that manages itself by running a job on AWX. Nice, eh?
Dear #AWX users out there (AWX as in Ansible, not AWS as in Amazon...),
does anyone have good pointers on connecting AWX and #Hashicorp #Vault / #OpenBoa **without** having to define each secret/credential again in AWX?
I have set up a basic connection according to the documentation: https://ansible.readthedocs.io/projects/awx/en/24.6.1/userguide/credential_plugins.html#ug-credentials-hashivault
And I have created a credential using that lookup and could successfully output its value in a playbook run in AWX.
But having to define a AWX credential for each secret that I need to pull from Vault/OpenBoa sounds like a lot of unnecessary duplication.
(Yes, I know you can manage AWX via Ansible. We do that already. But still, you need to define the credentials in your code somewhere for the automation to create it in AWX)
#Kubernetes Cluster auf der #Proxmox Umgebung läuft und #AWX 2.19.1 ist auch deployed… #homelab
Anyone with Ansible/AWX experience accessing HTTP APIs on protected networks?
I have tried documentation, the global web and chat with colleagues. Time to bring on the fedi human search.
Using ansible on switches that require you to come from a protected network is easy, you set up your ssh command to go through a jumphost. Accessing switches or firewalls that use an HTTP API is easy, you use a package that talks to the HTTP API, probably using the httpapi package.
But an HTTP API where you need to come from a protected network? Manually it's easy, just `ssh -D
` to a jumphost/bastion in the right network and tell curl to use a SOCKS proxy.
On the Ansible side though, I can't find the right place to get httpapi to go through a SOCKS proxy, and I'm not sure where's the best place to run that ssh command.
Has anyone on Fedi already solved this problem?
Интеграция Jira-AWX
Всем привет, меня зовут Денис, я хотел бы поделиться опытом использования AWX в рамках одной из наших потребностей. Статья может быть полезна ребятам с «инфры», если в компании используется vmware и подобное cloud решение для частого деплоя, а для всяческой бюрократии и запросов вы обращайтесь в Jira. Недавно @kuksepa выкладывала отличную статью про AWX по этому я не стану много описывать конкретно его, а постараюсь кратко описать процесс. Прошу не обращать внимание на замазанные элементы.
AWX: упрощаем работу с Ansible
Привет, на связи Ксения Кузьменко, DevOps-инженер департамента по организации выпуска продуктов YADRO. Наша DPS-команда предоставляет платформенные сервисы для 40+ команд и 1000+ пользователей внутри компании. Мы работаем с сотнями виртуальных машин в различных локациях. Каждый день прогоняем более 250 плейбуков, из них часть связаны между собой в сложные последовательности. Конечно, инструмент для упрощения работы с Ansible был в нашей дорожной карте еще на этапе планирования. Почему мы выбрали AWX, какие задачи решили и приятные «плюшки» получили, я расскажу в статье. О некоторых подводных камнях — тоже. Нужен ли AWX в вашей команде? На этот вопрос вы ответите сами, прочитав текст под катом. Я максимально подробно описала наш опыт с Ansible AWX. Если появятся вопросы — пишите в комментариях, отвечу.
#k3s and #awx upgraded in my homelab but then I spent like 1 hour debugging, why awx cant reach internet and all DNS were responding my public IP.. found that it was going to “google.com.my.domain.com” and that was responding with my ip address as I have dns record with “my.domain.com” towards my public IP. Removed my.domain.com from search in resolv.conf, scale down / up pods and everything was working again
#homelab #selfhosting
Hab heute Ansible OpenSource version AWX installiert. Siehe da es lief fast auf Anhieb ohne Fehler.
@ansible @jpmens you can find all the announcements on the AWX modernization topic in the Forum as a follow-up to the blog post you linked:
https://forum.ansible.com/tag/awx-modernization
Follow the `#awx-modernization` tag for updates when a new post goes out!
Поднимаем AWX Ansible под podman в Debian
Недавно на работе встала задача адаптировать awx ansible под podman, в процессе установки возникло множество нюансов которые подробно распишу в данной статье.
We've posted the latest edition of the #Ansible Bullhorn, with news on upcoming Ansible events, CFPs, and discussions on proposed collection removals from the Ansible package.
We also have the latest #AWX update on Authentication and Role-Based Access Control changes.
https://forum.ansible.com/t/the-bullhorn-154/8658
Happy reading!
"Circle Jerk" failed documentation of the year award goes to . . .