ah, yes your right for some reason that didn't jump into my head. i
am in fact using libyaml
inventory-testing]$ strace ansible-inventory -i ./inv.py --list 1>a 2>&1
[inventory-testing]$ grep libyaml a
openat(AT_FDCWD, "/lib64/libyaml-0.so.2", O_RDONLY|O_CLOEXEC) = 3
i also found this interesting, seems excessive
[[inventory-testing]$ grep open a | sort | uniq -c | grep -v "^ [1-9]"
18591 openat(AT_FDCWD, "/home/user/.ansible/plugins/connection",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file
or directory)
111536 openat(AT_FDCWD, "/home/user/.ansible/plugins/vars",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file
or directory)
18590 openat(AT_FDCWD,
"/usr/lib/python3.6/site-packages/ansible/plugins/connection",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
18590 openat(AT_FDCWD,
"/usr/lib/python3.6/site-packages/ansible/plugins/connection/__pycache__",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
111535 openat(AT_FDCWD,
"/usr/lib/python3.6/site-packages/ansible/plugins/vars",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
111535 openat(AT_FDCWD,
"/usr/lib/python3.6/site-packages/ansible/plugins/vars/__pycache__",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
18591 openat(AT_FDCWD, "/usr/share/ansible/plugins/connection",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
111536 openat(AT_FDCWD, "/usr/share/ansible/plugins/vars",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
22
stat("/usr/lib64/python3.6/site-packages/cryptography/hazmat/backends/openssl",
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
On Thu, Jan 5, 2023 at 12:15 PM Will McDonald <[email protected]> wrote:
>
> You can strace the ansible-inventory execution to check what libraries and
> syscalls are used:
>
> $ strace ansible-inventory -i inventory/hosts --list 2>&1 | grep libya
> openat(AT_FDCWD, "/lib64/libyaml-0.so.2", O_RDONLY|O_CLOEXEC) = 3
>
> $ rpm -qf /lib64/libyaml-0.so.2
> libyaml-0.2.5-8.fc37.x86_64
>
>
>
> On Tue, 3 Jan 2023 at 15:36, Michael DiDomenico <[email protected]>
> wrote:
>>
>> it is installed. is there a way for me to confirm that ansible is
>> actually using it?
>>
>> $ rpm -qa | grep -i yaml
>> perl-CPAN-Meta-YAML-0.018-397.el8.noarch
>> python3-pyyaml-3.12-12.el8.x86_64
>> libyaml-0.1.7-5.el8.x86_64
>>
>>
>> On Sat, Dec 31, 2022 at 6:49 PM Brian Coca <[email protected]> wrote:
>> >
>> > Do you have libyaml installed? it is the C version of the YAML
>> > tokenizer, if not the processing will be done in python, which is much
>> > slower. The difference is not noticeable with small files, but it
>> > really becomes visible with large ones.
>> >
>> >
>> > --
>> > ----------
>> > Brian Coca
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "Ansible Project" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an
>> > email to [email protected].
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msgid/ansible-project/CACVha7fT33czos32m%3DTVxzMpWMdg5M7EAnvf44oUuOwHV0VLUQ%40mail.gmail.com.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CABOsP2MUpfN_KoVqfTLr-hmTPTba%2BvLvR%3DwBJ6hVxcNgTNyAKw%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKtKohR%2BBLLeJ8OoQk9gvJn-O%3D_JHJ9u%3DvtDi8wkedfLLHTmGg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CABOsP2P0M9%2Bu9X7ESsCKQ22mT0ABO_JMeKhZnkzGoR1hgCttRg%40mail.gmail.com.