Ansible - dynamically include Jinja templates and tasks

For my ansible playbooks, I wanted to be able to add several new templates to be copied to target system, and additionally be able to perform some commands for them without having to specify each individual file/template to copy. My approach: Define for the hosts I want to find templates/playbooks define a var named extras for the relevant hosts: extras: - ntp - certificates The names defined (in above example ntp and certificates) are just name of folders laying inside tasks/templates/${folder} that are searched and included or excluded based on extras values....

September 24, 2022 · 2 min · Pablo Iranzo Gómez

Setup a Quay mirror for offline installations with mirror-registry

In order to setup disconnected registry for installation, follow this blog post by Daniel at Introducing Mirror Registry for Red Hat OpenShift. At the end of the process it will output something like: INFO[2022-08-19 07:10:22] Quay installed successfully, permanent data is stored in /etc/quay-install INFO[2022-08-19 07:10:22] Quay is available at https://${HOSTNAME}:8443 with credentials (init, ${PASSWORDSTRING}) Once the setup is done, remember several steps: Edit /etc/containers/registries.conf to add relevant entries for our registry as required:...

August 19, 2022 · 2 min · Pablo Iranzo Gómez

RHCE and RHCSA tips and tricks

I did the RHCE exam some time ago, and still there are some tricks and advices I tell the people to bear in mind some of the things I used and that were also provided in the Red Hat Enterprise 8 Administration book: Don’t remember every step, it’s not effective, for example as I don’t recall syntax for BIND, I do remember package that has some files with examples and I use that one to check what I need to do Install mlocate and run updatedb as soon as you start, then you can use locate <file> to find out files in your system Use your preferred editor… it’s common to use vi or vim as it’s pretty standard, but if you’re used to another, make yourself comfortable in the system....

July 13, 2022 · 2 min · Pablo Iranzo Gómez

Lego 60335 Train station with bus

I loved the Bus and I was behind it for my city setup, so I went for it and got the Lego 60335 Train station with bus. It contains three instruction manuals for the components: Cart for repairs that can run over the tracks or the road Bus Train station itself The train station. It features a cafeteria with a croissant, coffee machine and another desk for the tickets. Has ticket machine and a place to sit while waiting for the train...

June 18, 2022 · 1 min · Pablo Iranzo Gómez

Lego Volkswagen T2

I’ve been building the Lego Volkswagen T2 🛒 and took some pics about the final result and the comparison with the T1. Feelings: The rear door (above the motor) dismantles itself just by looking at it, the mechanism is interesting as it uses some sticks that get inserted inside the support, but the frame holding it, specially in the upper side is really weak… The sliding door on the side is nice, and has a mechanism to ‘open it’ by pushing a small button in the lower part of the van The bed opens a bit better than on T1, which also was easy to get dismantled, same as the table that can be folded which is a lot nicer....

May 26, 2022 · 1 min · Pablo Iranzo Gómez
This blog is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.