The problem that I have is that if I follow the recommendation and convert the tasks to handlers, then the handlers will be very far away in the playbook - way down at the bottom, hundreds of lines later.
I can silence the error, but I guess it is there for a reason.
Am I crazy? Or is the idea that I should be having smaller playbooks or what?
@ascherbaum Well I basically have a playbook that sets up everything on a metal server in a cluster. So installing packages, configuring email, creating swap, changing from systemd timesync to ntpd and so on. It's a lot of simple things. I guess that I can split it up, but have never had any reason to... until now, and it feels a bit arbitrary. 🤔
@pikesley I recall need to get on with reading a load more Le Guin. Sought out (short story) Vaster Than Empires And More Slow a month or so ago and it was excellent.
@jpmens And thanks for the "this is fucking unclear", updated the article to have the import and also use wrap_var which is a tiny wrapper that figures out the "right" Unsafe datatype itself.
So, you just started with #ansible? Or maybe you want to improve in it? In the past, I wrote a couple of articles about @ansible , how you can get started and practical examples.
I hope these help you with #OpenSource#Automation. In case you miss something or want to provide feedback, please get in touch. I would love to address your topics, too.
After testing a PoC for a few weeks we now officially switch to a #nix based development environment based on #devenv. We’re comming from a #Vagrant based environment. #Ansible will still do the configuration for certain parts but the LAMP stack is provided by #devenv.
Really looking forward to working on this, even though it is a little bit intimidating.
@geerlingguy is there an #ansible way to set up a static IP on a headless raspberry pi, I know I can set an IP when flashing the sd card, but then I want to set hostname and IP using nmcli, maybe from a lookup table or something, I’m probably over complicating this.
I found my Master's thesis from 2013 where I wrote that #Ansible wasn't mature enough to be chosen to manage our database infrastructure at my previous job. 11 years later, I gave a talk to show the exact opposite at #CfgMgmtCamp.
In a specific #Ansible playbook I wanted to retrieve the root partition's size in GB. Sounds easy, right?
Actually this turned out to be more complex than I anticipated.
json_query filtering, type issues with arithmetic calculations and rounding were some of the hurdles I needed to jump. 🦘
May my latest #blog post be helpful to you. Happy Friday! 🍻
Event-Driven Ansible is here and it opens up a whole new world of possibilities for working with #Ansible. Dive into the future with our latest article, featuring a minimal example to get you started https://atix.de/en/blog/event-driven-ansible/
Prove me wrong, but strings should not be comparable to booleans. How many times have I forgotten to wrap an expression in "{{ }}" only to have it assign a string to a variable not a boolean. I wonder why it's always true at the other end… #Ansible#fail