jaxxed

joined 6 months ago
[–] jaxxed 1 points 1 week ago

SDDm now has a wayland implementation? About time.

[–] jaxxed -3 points 1 week ago (2 children)

The whole thread is full of them.

[–] jaxxed 2 points 1 week ago

I think that we are talking about insurance policies that make you install an app on your phone directly. The app publishes directly to the Internet.

[–] jaxxed 1 points 1 week ago (1 children)

I thought that there might be a way to a custom facts (gather_facts) to all machines, and indicate leader/joiner status there, but I can't get the data to stick.

[–] jaxxed 1 points 1 week ago

sounds like the same idea. So you use run_once on a task?

[–] jaxxed 2 points 1 week ago (1 children)

Let me try to reword it to make it clear.

I have 3 machines in my group. 1 of those will be the "leader". The others will be "joiners". The leader could already be initialized, so I need to check all machines to see if there is a leader already. If no Leader exists then any of the machines will do (the first) All of the machines that will join will need some data from the leader, so there will be a role task that will be delegated to the leader (ansible needs to know which host is the leader so as to be able to delegate to it)

This may sound complex but it is a very common pattern for distributed application setup.

idempotency doesn't play a role in this behaviour - the machines are all unique, but who knows what may have changed between ansible runs.

 

I have an inventory of hosts, and from them, one of the tasks should choose a leader by running a command on each until one of the machines produces an expected output (json value.)

I want some code to run on that leader to initialize it, and then I want some of the other roles to delegate some tasks to that leader.

Not sure how to do this?

Should I use dynamic inventory to analyze a group of hosts, and create a new group (can you run built_in.command in dynamic inventory? Should I write a role task that runs the identifying command on each host, capturing the result globally if it returns what I want (but then running on each host even if I have found my leader?)

[–] jaxxed 1 points 2 weeks ago* (last edited 2 weeks ago)

Is it ostree based? I guess I should RTM

[–] jaxxed 12 points 3 weeks ago

That idea leads to Authoritarians getting charges put on their opponents.

[–] jaxxed 12 points 3 weeks ago

If the Biden campaign thought that hish payment felonies were going to cost Trump the election, then they haven't been paying attention for the last 10 years

[–] jaxxed 6 points 1 month ago

Or, you know, maybe the kid shouldn't have had a firearm. He clearly had no respect for them.

[–] jaxxed 1 points 1 month ago (1 children)

He gets to blame it on the Israelis.

[–] jaxxed 10 points 1 month ago

Toronto suburb I lived in had a no outdoor cats rule. Massive changes uears later, all the way up to increases in rabbits, deer, and coyotes.

view more: next ›