This is the custom python script for creating a library using CL command
CRTLIB

https://github.com/IBM/ansible-for-i/blob/devel/plugins/modules/ibmi_cl_command.py



On Tue, 17 Jan 2023 at 03:53, SP1 -77 <[email protected]> wrote:

> See this guide for a comprehensive explanation:
>
> https://www.middlewareinventory.com/blog/ansible-command-examples/
>
>
> On Tue, 10 Jan 2023 at 15:45, Paul Fenstermacher <
> [email protected]> wrote:
>
>> I want to include this create library task in playbooks that will run
>> against IBMi systems. However, the playbook fails if the library already
>> exists, and I need to know how to skip the command if the library is
>> already there. In a CL program I would use MONMSG, is there something
>> equivalent in Ansible?
>>
>>
>>
>>    - Name: create library
>>
>> Ibmi_cl_command:
>>
>> Cmd: ‘CRTLIB LIB(libname)’
>>
>>
>>
>>
>>
>>
>>
>> NOTICE: This electronic mail message and any files transmitted with it
>> are intended
>> exclusively for the individual or entity to which it is addressed. The
>> message,
>> together with any attachment, may contain confidential and/or privileged
>> information.
>> Any unauthorized review, use, printing, saving, copying, disclosure or
>> distribution
>> is strictly prohibited. If you have received this message in error,
>> please
>> immediately advise the sender by reply email and delete all copies.
>>
>> --
>> 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/DM6PR14MB4138EC4DD2ADC83BE4C31A01C3FF9%40DM6PR14MB4138.namprd14.prod.outlook.com
>> <https://groups.google.com/d/msgid/ansible-project/DM6PR14MB4138EC4DD2ADC83BE4C31A01C3FF9%40DM6PR14MB4138.namprd14.prod.outlook.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/CAACV%3DNntXg2SqN-nZNNBHzKC8umkPMq0amJiO5fB%3DyAOdZ1SGw%40mail.gmail.com.

Reply via email to