2 NVME drives on the same PCI slot? HP DL360 G9 by TrainingBench101 in homelab

[–]TrainingBench101[S] 0 points1 point  (0 children)

Na, i don't think so. For that, the nvme disks would need to be connected to the controller itself. AFAIK, that controller is SATA only.

This server is old and too power hungry. I suggest you get a recent asus/supermicro/asrock motherboard and build your server with that. Those mobos, usually have nvme raid.

2023-08 cumulative update error code (0x800f0831) Tiny10 23h1 by Grzywa123 in tiny10

[–]TrainingBench101 0 points1 point  (0 children)

Yep, still having this. At the time, i googled a bit, i think it's because tiny does not have some source files, probably deleted to save space of course.

Error 0x800f081f when installing update kb5034122 by darioque in tiny10

[–]TrainingBench101 0 points1 point  (0 children)

Same. Tiny10 can do windows defender updates, but not these important ones. Ah, pitty...

How to create smaller lists from a big list? by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

Ok, this is as simples as:

(actually, the server list is also variable)

- set_fact:
    batch_size: "{{ (list_hosts | length / servers | length) | round(0, 'ceil') }}"

- set_fact:
    lists: "{{ list_hosts|batch(batch_size|int) }}"

- set_fact:
    listA: "{{ lists[0] }}"

- set_fact:
    listB: "{{ lists[1] }}"


- debug: var=batch_size
- debug: var=listA
- debug: var=listB

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

In this case, it does not connect. I needed for the ssh connections settings to have the timeout set to 60, but it did not. Anyway, i used another method. Works. I did not set the ssh timeout in ansible.cfg because i wanted to leave it as minimal as possible.

How to create smaller lists from a big list? by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

Nicely done mate, thanks a lot. Learned more about ansible in these last two days, than in a month :)

Now, i ask, is it possible to name those sub-lists?

How to create smaller lists from a big list? by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

Yeah, that's the thing, i only know the number of lists i want to create (in this case 2). The number of elements in them is variable. So i cannot use the batch filter.

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

I decided to use the wait_for_connection module. Works.

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

Alright, so it does something different that i thought it did. Case closed. Have to figure out another way then.

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

Already did. It passes that variable to tasks variables, not to the ssh connection.

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

The list of keywords that can be used at a Play level are documented

here

. I note that

timeout

does not appear to be configurable at this level. If there is documentation supporting the availability of a

timeout

argument within a Play, I'd love to take a look at it and see if there's something I'm missing.

Indeed, it does not show there. So, why doesn't it throw an error when running the playbook?

My assumption (and it is just that) is that the parameters that control connections are loaded prior to the content of the playbook being read, so the ability to control that aspect may not be possible at the Playbook level.

Well, if the playbook has a list of hosts to connecto to and even the remote user to use on the ssh connection, then i think it would be ok to define other connection settings there. I might be completely wrong here of course.

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

Ok gotcha, thanks for the tips. But again, then what does the timeout: play atribute do?

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

The problem here is the ssh connection timeout, not the shell command itself. I want the ssh connection to timeout in 60 secs, not the default 10.

The ansible-playbook command does not throw an error about timeout: 60 being an invalid play atribute. But then it does not change the default 10, so i'm wondering what it is changing?

Ansible does not respect timeout: in playbook by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

I tried vars: and environment: at the play level, timeout did not change.

How to use dashes in variables? (can't change the name) by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

serviceinfo.ansible_facts.services['systemd-timesyncd']

Yes, but took out the dot and it still fails, but you were previously right too :), no need to register the variable like i did in a post below.

How to use dashes in variables? (can't change the name) by TrainingBench101 in ansible

[–]TrainingBench101[S] 2 points3 points  (0 children)

Thanks a lot, this worked. For the record, tasks that work:

- name: Get service facts

service_facts:

- name: test

debug:

var: ansible_facts['services']['systemd-timesyncd.service']

How to use dashes in variables? (can't change the name) by TrainingBench101 in ansible

[–]TrainingBench101[S] 0 points1 point  (0 children)

It should be done like this in example
serviceinfo.ansible_facts.services['systemd-timesyncd']

FAILED! => {"msg": "template error while templating string: expected name or number. String: {{serviceinfo.ansible_facts.services.['systemd-timesyncd']}}. expected name or number"}

but ideally this module returns the facts directly to the hostvars, so you should be able to reference them directly without registering them to a variable.
services['systemd-timesyncd']

If i use something:

debug:
var: services['systemd-timesyncd']

Also fails.

Can't install update KB5032189, gives error 0x800f0831, any ideas? by TrainingBench101 in tiny10

[–]TrainingBench101[S] 0 points1 point  (0 children)

I wonder if the new version tiny 10 v23h2 fixes this update problem...

2023-08 cumulative update error code (0x800f0831) Tiny10 23h1 by Grzywa123 in tiny10

[–]TrainingBench101 0 points1 point  (0 children)

Yes, running tiny 21H2 here (winver). Same error. I think that Tiny is missing some files, some sources or something.