[ansible-project] Fwd: Ansible task execution until it completes

2023-06-22 Thread Aharonu
Hi Team,

Greetings!

Could you please go through below mentioned -vvv output where i can see
required output under MSG ( highlighted in blue):

Can we get output of only MSG instead of listing all other output so that i
can seethe required output?

Thank you for your time and help.


TASK [*run ontap rest cli command for vol move resister variabele*]

***
task path: /home/user1/facts/netapp_volume_move.yml:38
< removed some data >
"attempts": 1,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (34 retries left).Result was: {
"attempts": 2,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (33 retries left).Result was: {
"attempts": 3,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (32 retries left).Result was: {
"attempts": 4,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 

Re: [ansible-project] Ssh connectivity issues from a Debian core server to a remote Windows 10 Pro host.

2023-06-22 Thread Brian Coca
Did you follow
https://docs.ansible.com/ansible/latest/os_guide/windows_setup.html#windows-ssh-setup
?


-- 
--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7dqnVE%3DYod5aujn8eTN4AEV25-T-EEqG6J%2Bkc-sVHP-qg%40mail.gmail.com.


[ansible-project] fails when trying to use the mssql_script module #6768

2023-06-22 Thread Nicolás Ortiz
When I do a sql query with the mssql_script module, it fails and gives me 
the following error:

FAILED! => {"changed": false, "module_stderr": "Excepción al llamar a 
"Create" con los argumentos "1": "En línea: 4 Carácter: 21\r\n+ def 
_ansiballz_main():\r\n+ ~\r\nSe esperaba una expresión después de 
'('.\r\nEn línea: 8 Carácter: 19\r\n+ os.getcwd()\r\n+ ~\r\nSe esperaba una 
expresión después de '('.\r\nEn línea: 20 Carácter: 27\r\n+ except 
(AttributeError, OSError):\r\n+ ~\r\nFalta un argumento en la lista de 
parámetros.\r\nEn línea: 22 Carácter: 29\r\n+ excludes = set(('', '.', 
scriptdir))\r\n+ ~\r\nFalta una expresión después de ','.\r\nEn línea: 22 
Carácter: 30\r\n+ excludes = set(('', '.', scriptdir))\r\n+ 
~\r\nToken 'scriptdir' inesperado en la expresión o la 
instrucción.\r\nEn línea: 22 Carácter: 29\r\n+ excludes = set(('', '.', 
scriptdir))\r\n+ ~\r\nFalta el paréntesis de cierre ')' en la 
expresión.\r\nEn línea: 22 Carácter: 39\r\n+ excludes = set(('', '.', 
scriptdir))\r\n+ ~\r\nToken ')' inesperado en la expresión o la 
instrucción.\r\nEn línea: 22 Carácter: 40\r\n+ excludes = set(('', '.', 
scriptdir))\r\n+ ~\r\nToken ')' inesperado en la expresión o la 
instrucción.\r\nEn línea: 29 Carácter: 7\r\n+ if sys.version_info < 
(3,):\r\n+ ~\r\nFalta '(' después de 'if' en la instrucción if.\r\nEn 
línea: 29 Carácter: 30\r\n+ if sys.version_info < (3,):\r\n+ ~\r\nFalta una 
expresión después de ','.\r\nNo se notificaron todos los errores de 
análisis. Corrija los errores notificados e inténtelo de nuevo."\r\nEn 
línea: 10 Carácter: 1\r\n+ $exec_wrapper = 
[ScriptBlock]::Create($split_parts[0])\r\n+ 
~~\r\n + CategoryInfo : 
NotSpecified: (:) [], MethodInvocationException\r\n + FullyQualifiedErrorId 
: ParseException\r\n \r\nLa expresión que sigue a '&' en un elemento de 
canalización produjo un objeto no válido. El resultado debe ser un 
\r\nnombre de comando, un bloque de script o un objeto CommandInfo.\r\nEn 
línea: 11 Carácter: 2\r\n+ &$exec_wrapper\r\n+ ~\r\n + 
CategoryInfo : InvalidOperation: (:) [], RuntimeException\r\n + 
FullyQualifiedErrorId : BadExpression\r\n ", "module_stdout": "", "msg": 
"MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}



ansible [core 2.14.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', 
'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.11/site-packages/ansible
ansible collection location = 
/root/.ansible/collections:/usr/share/ansible/collections
executable location = /bin/ansible
python version = 3.11.2 (main, Feb 16 2023, 00:00:00) [GCC 11.3.1 20221121 
(Red Hat 11.3.1-4)] (/usr/bin/python3.11)
jinja version = 3.1.2
libyaml = True

ansible [core 2.14.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', 
'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.11/site-packages/ansible
ansible collection location = 
/root/.ansible/collections:/usr/share/ansible/collections
executable location = /bin/ansible
python version = 3.11.2 (main, Feb 16 2023, 00:00:00) [GCC 11.3.1 20221121 
(Red Hat 11.3.1-4)] (/usr/bin/python3.11)
jinja version = 3.1.2
libyaml = True


Operating System: AlmaLinux 9.2 (Turquoise Kodkod)

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ba47360a-5809-49ab-b74e-469087e9429fn%40googlegroups.com.


[ansible-project] Re: mssql_script module - Segmentation fault error

2023-06-22 Thread Nicolás Ortiz
The error message you provided indicates a segmentation fault in the 
execution of the Ansible module mssql_script on the remote host. A 
segmentation fault typically occurs when a program attempts to access 
memory that it is not allowed to access, leading to a crash.

There could be multiple reasons for this error, including compatibility 
issues, incorrect installation, or system-specific configurations. Here are 
a few suggestions to troubleshoot and resolve the issue:

Check compatibility: Ensure that the version of pymssql (2.2.7) you 
installed is compatible with the version of Python (3.6.8) on the remote 
host. Verify if there are any specific compatibility requirements mentioned 
in the pymssql documentation.

Verify installation: Double-check that pymssql is correctly installed on 
the remote host. You can try importing pymssql in a Python interactive 
session on the remote host to verify if it can be imported without any 
errors.

Review system-specific configurations: Some systems might require 
additional configurations or dependencies for pymssql to function properly. 
Ensure that all the necessary dependencies are installed on the remote 
host. Check if there are any specific system requirements mentioned in the 
pymssql documentation.

Update pymssql and dependencies: If possible, try updating pymssql to the 
latest version. It could include bug fixes or improvements that address the 
issue you are facing. Additionally, make sure all the required dependencies 
(such as FreeTDS) are up to date.

Enable verbose output: Modify your Ansible playbook to enable verbose 
output by adding the -vvv option. This can provide more detailed 
information about the error and help pinpoint the cause.

Review system logs: Check the system logs on the remote host for any 
relevant error messages or additional information related to the 
segmentation fault. The logs may provide clues about the underlying cause.

El martes, 16 de mayo de 2023 a las 1:47:16 UTC-5, shloco escribió:

> I'm running the bellow play 
>
>
>
>  - name: Setup url 
>
>   run_once: true
>
>   community.general.mssql_script:
>
> login_user: "{{ mssql_login_user }}"
>
> login_password: "{{ mssql_login_password }}"
>
> login_host: "{{ mssql_host }}"
>
> login_port: "{{ mssql_port }}"
>
> db: MSSQLDB
>
> script: "SELECT 1"
>
>   register: result_params
>
>
> on remote host  - Python 3.6.8 ,  pymssql-2.2.7
>
>
> I get the error bellow
>
>
> fatal: [hostname]: FAILED! => {
>
> "ansible_facts": {
>
> "discovered_interpreter_python": "/usr/libexec/platform-python"
>
> },
>
> "changed": false,
>
> "module_stderr": "Shared connection to hostname closed.\r\n",
>
> "module_stdout": "/bin/sh: line 1: 3580297 Segmentation fault  
> (core dumped) /usr/libexec/platform-python 
> /home/svc/.ansible/tmp/ansible-tmp-1684217329.507804-55251-184388487997846/AnsiballZ_mssql_script.py\r\n",
>
> "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
>
> "rc": 139
>
> }
>
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/af755401-8942-42e6-a66b-9c0dc0927334n%40googlegroups.com.


[ansible-project] Release announcement : Ansible Community Package 8.1.0

2023-06-22 Thread Anwesha Das
Hello everyone,

We're happy to announce the release of the Ansible 8.1.0 package!

Ansible 8.1.0 includes ansible-core 2.15.1 as well as a curated set of
Ansible collections that provide a vast number of modules and plugins.

How to get it
-

This release is available on PyPI and can be installed with pip:

`$ python3 -m pip install ansible==8.1.0 --user`

The sources for this release can be found here:

Release tarball:

https://files.pythonhosted.org/packages/87/d7/322dd9d88261e56862ade2f9b9c125d0de648857e755d7177500272d2e05/ansible-8.1.0.tar.gz

SHA256:

91f20b5bfcf5f298533c174a93881e00bc9e6b41411464f44c054a38d716a56a

Wheel package:

https://files.pythonhosted.org/packages/01/43/b5620e57e14a84d9bf257ba4797c2abfa13f7c3be04bc8cd35f86d2e6a2d/ansible-8.1.0-py3-none-any.whl

SHA256:

3bcfb06f2d65edc1c4876df33a52d4469d48d4fe534f1d8ffa196f1b0d81ab0e

Some important details
---

Python wheels are now available for both Ansible 8 and ansible-core
2.15.x, resulting in significantly improved installation performance.

In addition, Ansible 8 no longer installs some unnecessary files from
the included Ansible collections such as tests or hidden files and
directories to further improve installation performance and reduce the
size on disk. These files are still available in the source tarball if
necessary.

The changelog for ansible-core 2.15.1 installed by this release of
Ansible 8 can be found here:
https://github.com/ansible/ansible/blob/v2.15.1/changelogs/CHANGELOG-v2.15.rst

Collections which have opted-in to being a part of the Ansible 8
unified changelog will have an entry on this page:
https://github.com/ansible-community/ansible-build-data/blob/main/8/CHANGELOG-v8.rst

For collections which have not opted-in to the unified changelog, you
may find more information on https://galaxy.ansible.com or the
collection source repository. For example, the community.crypto
collection is available at https://galaxy.ansible.com/community/crypto
and you can find a link to the source repository under the "Repo"
button at the top right.

What's the schedule for new Ansible releases after 8.1.0?
-

Subscribe to the Bullhorn for all future release dates, announcements,
and Ansible contributor community news.

Visit this link to subscribe: https://bit.ly/subscribe-bullhorn

You can find all past Bullhorn issues on the official wiki page:
https://github.com/ansible/community/wiki/News#the-bullhorn

Porting Help


A unified porting guide for collections that have opted-in is available here:
https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_8.html

Getting collection updates from Ansible 8 with older releases of ansible-core
--

Ansible 8 includes ansible-core 2.15.x. Based on your requirements,
you can get collection updates as they ship in the Ansible "batteries
included" package while continuing to use older versions of
ansible-core.

An ansible-galaxy requirements file based on the collections from
Ansible 8 has been made available for this use case:
https://github.com/ansible-community/ansible-build-data/blob/main/8/galaxy-requirements.yaml

After you download the requirements file, the collections can be
installed by running this command:

"ansible-galaxy collection install -r galaxy-requirements.yaml"

On behalf of the Ansible community, thank you and happy automating!

Cheers
Ansible Community Team

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHK8evhijkc8wuOYGw_nv_jDS4K19b%3D969jL9rkD6%2B%2BvyUi9OA%40mail.gmail.com.


Re: [ansible-project] https://docs.ansible.com/ansible/2.9_ja/modules/jenkins_job_info_module.html not printing info for mutlpipleine jobs

2023-06-22 Thread Narmada Karthika
this is the failure message I get 
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n  File 
\"/home/deploy-user/.ansible/tmp/ansible-tmp-1687467074.902748-21679-1695874315533/AnsiballZ_jenkins_job_info.py\",
 
line 100, in \n_ansiballz_main()\n  File 
\"/home/deploy-user/.ansible/tmp/ansible-tmp-1687467074.902748-21679-1695874315533/AnsiballZ_jenkins_job_info.py\",
 
line 92, in _ansiballz_main\ninvoke_module(zipped_mod, temp_path, 
ANSIBALLZ_PARAMS)\n  File 
\"/home/deploy-user/.ansible/tmp/ansible-tmp-1687467074.902748-21679-1695874315533/AnsiballZ_jenkins_job_info.py\",
 
line 41, in invoke_module\nrun_name='__main__', alter_sys=True)\n  File 
\"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\nreturn 
_run_module_code(code, init_globals, run_name, mod_spec)\n  File 
\"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n   
 mod_name, mod_spec, pkg_name, script_name)\n  File 
\"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\nexec(code, 
run_globals)\n  File 
\"/tmp/ansible_jenkins_job_info_payload_k3zaq5p6/ansible_jenkins_job_info_payload.zip/ansible_collections/community/general/plugins/modules/jenkins_job_info.py\",
 
line 262, in \n  File 
\"/tmp/ansible_jenkins_job_info_payload_k3zaq5p6/ansible_jenkins_job_info_payload.zip/ansible_collections/community/general/plugins/modules/jenkins_job_info.py\",
 
line 252, in main\n  File 
\"/tmp/ansible_jenkins_job_info_payload_k3zaq5p6/ansible_jenkins_job_info_payload.zip/ansible_collections/community/general/plugins/modules/jenkins_job_info.py\",
 
line 204, in get_jobs\nKeyError: 'color'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1

On Thursday, June 22, 2023 at 12:00:46 PM UTC-7 Narmada Karthika wrote:

> My bad corrected the module name 
>
> On Thu, Jun 22, 2023 at 11:42 AM Narmada Karthika  
> wrote:
>
>> here is my jenkins info play
>>
>>  - name: Print the jobname
>>
>   jenkins_job_info:
>>
>
>> name: 'build.teamCI'
>> user: nchi...@domain.com
>> token: 
>> url: https://build.com
>>   register: my_jenkins_job_info
>>   tags: jenkinsjob2
>>
>
>> the above play is printing info for jobs which are not multipipline. if I 
>> give multipipeline jobs its failing.
>> Is there any work around or am I missing anything...
>>
>> -- 
>> 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 ansible-proje...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/1c8810d2-adad-4160-8c5c-3291e42ca203n%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
>  Thanks,
> Narmada Karthika Chitturi
>  
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/85b0c573-b5f7-4fd8-a401-ef4a11fdbf3cn%40googlegroups.com.


Re: [ansible-project] AWX question from a beginner :-(

2023-06-22 Thread Evan Hisey
Correct. AWX was not intended managing a seperate environment. Honestly,
unless you need schedules and callbacks, or shared operation management
like in enterprise it is not very useful.

On Thu, Jun 22, 2023, 1:38 PM Federico Rovelli  wrote:

> Thanks Evan for the answer, but I have already configured my Ansible
> environment manually under /etc/ansible outside container.
> Now, after one year I decided to install AWX and I tought was possible to
> manage my configuration with AWX.
>
> What you sugget is replicate manually on AWX the same things I already
> done on the server :-(
>
> Regards
> Ciao
>
> Il giorno giovedì 22 giugno 2023 alle 17:42:23 UTC+2 Evan Hisey ha scritto:
>
>  AWX/Ansible Tower is designed to work with a Git repo or other Source
> Control holding each "project" via URI. In general this is also the
> simplest way to handle things.  There is an option to use "manual" loaded
> projects but requires hand loading the playbooks into the tower container.
> To do this you have to manually copy the playbooks to the AWX container
> something like this:
>
>- Create a directory in /var/lib/awx/projects directory on the local
>ansible AWX container. Example, /var/lib/awx/projects/project1
>- Place the playbook in 'project1' directory. Example,
>var/lib/awx/projects/project1/example_playbook.yml (follow process as
>described here
>
> 
>)
>- Create a manual project in Tower (follow process as described here
>
> 
>)
>- Use that project in job template to see the playbook
>'example_playbook.yml'
>
>
> On Thu, Jun 22, 2023 at 10:23 AM Federico Rovelli 
> wrote:
>
> I have an Ansible environment already configured (control server and
> managed servers) and I want to manage it with AWX.
> I have installed AWX and start a GUI but I don't know in what way I can
> connect AWX to my configuration manually  done.
>
> --
> 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 ansible-proje...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bcbf1b51-306e-4325-beb8-f0867e2dac06n%40googlegroups.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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6ceea438-2bbf-4784-91e9-9874f1e0cda3n%40googlegroups.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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEcFzYwaeWcSNuP3a2YaKvDWd3Ny6Ak9g9aZa1ztNgeK52PO1Q%40mail.gmail.com.


Re: [ansible-project] https://docs.ansible.com/ansible/2.9_ja/modules/jenkins_job_info_module.html not printing info for mutlpipleine jobs

2023-06-22 Thread Narmada Karthika
My bad corrected the module name

On Thu, Jun 22, 2023 at 11:42 AM Narmada Karthika 
wrote:

> here is my jenkins info play
>
>  - name: Print the jobname
>   jenkins_job_info:
> name: 'build.teamCI'
> user: nchitt...@domain.com
> token: 
> url: https://build.com
>   register: my_jenkins_job_info
>   tags: jenkinsjob2
>
> the above play is printing info for jobs which are not multipipline. if I
> give multipipeline jobs its failing.
> Is there any work around or am I missing anything...
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1c8810d2-adad-4160-8c5c-3291e42ca203n%40googlegroups.com
> 
> .
>
-- 
 Thanks,
Narmada Karthika Chitturi

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CABdF8S3-nwW0eDsK-_Q%2BvuVT64jUxnMhjXZOGhxuYz4-td%2Bnhw%40mail.gmail.com.


[ansible-project] https://docs.ansible.com/ansible/2.9_ja/modules/jenkins_job_info_module.html not printing info for mutlpipleine jobs

2023-06-22 Thread Narmada Karthika
here is my jenkins info play

 - name: Print the jobname
  jenkins_job_facts:
name: 'build.teamCI'
user: nchitt...@domain.com
token: 
url: https://build.com
  register: my_jenkins_job_info
  tags: jenkinsjob2

the above play is printing info for jobs which are not multipipline. if I 
give multipipeline jobs its failing.
Is there any work around or am I missing anything...

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1c8810d2-adad-4160-8c5c-3291e42ca203n%40googlegroups.com.


Re: [ansible-project] AWX question from a beginner :-(

2023-06-22 Thread Federico Rovelli
Thanks Evan for the answer, but I have already configured my Ansible 
environment manually under /etc/ansible outside container.
Now, after one year I decided to install AWX and I tought was possible to 
manage my configuration with AWX.

What you sugget is replicate manually on AWX the same things I already done 
on the server :-(

Regards
Ciao

Il giorno giovedì 22 giugno 2023 alle 17:42:23 UTC+2 Evan Hisey ha scritto:

 AWX/Ansible Tower is designed to work with a Git repo or other Source 
Control holding each "project" via URI. In general this is also the 
simplest way to handle things.  There is an option to use "manual" loaded 
projects but requires hand loading the playbooks into the tower container. 
To do this you have to manually copy the playbooks to the AWX container 
something like this:

   - Create a directory in /var/lib/awx/projects directory on the local 
   ansible AWX container. Example, /var/lib/awx/projects/project1
   - Place the playbook in 'project1' directory. Example, 
   var/lib/awx/projects/project1/example_playbook.yml (follow process as 
   described here 
   

   )
   - Create a manual project in Tower (follow process as described here 
   

   )
   - Use that project in job template to see the playbook 
   'example_playbook.yml'


On Thu, Jun 22, 2023 at 10:23 AM Federico Rovelli  wrote:

I have an Ansible environment already configured (control server and 
managed servers) and I want to manage it with AWX.
I have installed AWX and start a GUI but I don't know in what way I can 
connect AWX to my configuration manually  done. 

-- 
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bcbf1b51-306e-4325-beb8-f0867e2dac06n%40googlegroups.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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6ceea438-2bbf-4784-91e9-9874f1e0cda3n%40googlegroups.com.


[ansible-project] Ssh connectivity issues from a Debian core server to a remote Windows 10 Pro host.

2023-06-22 Thread gonzalo diaz larenas
Hello how are you, I am trying to connect remotely via ssh to a remote 
Windows 10 Pro host, I apply the ad-hoc command and the only remote host 
that does not respond is the one with Windows 10 Pro installed, I attach 
the connectivity error, and I attach my inventory.yml file, I would 
appreciate your guidance.

[image: Problemas de conectividad ssh Windows 22-06-2023.JPG]
[image: Inventory 22-06-2023.JPG]

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/893ad783-e075-496e-9faf-274d322645b9n%40googlegroups.com.


[ansible-project] Re: Ansible task execution until it completes

2023-06-22 Thread Vladimir Botka
On Thu, 22 Jun 2023 10:55:32 +
Aharonu  wrote:

> ...
> Can we get output of only MSG instead of listing all other output so that i
> can see the required output?

This is the list of the records *variable_data.msg.records*

I can't provide you with better answer without "Minimal reproducible
example". https://en.wikipedia.org/wiki/Minimal_reproducible_example

-- 
Vladimir Botka

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20230622180408.3b57e762%40gmail.com.


pgpWAqYB4j7QP.pgp
Description: OpenPGP digital signature


Re: [ansible-project] AWX question from a beginner :-(

2023-06-22 Thread Evan Hisey
 AWX/Ansible Tower is designed to work with a Git repo or other Source
Control holding each "project" via URI. In general this is also the
simplest way to handle things.  There is an option to use "manual" loaded
projects but requires hand loading the playbooks into the tower container.
To do this you have to manually copy the playbooks to the AWX container
something like this:

   - Create a directory in /var/lib/awx/projects directory on the local
   ansible AWX container. Example, /var/lib/awx/projects/project1
   - Place the playbook in 'project1' directory. Example,
   var/lib/awx/projects/project1/example_playbook.yml (follow process as
   described here
   

   )
   - Create a manual project in Tower (follow process as described here
   

   )
   - Use that project in job template to see the playbook
   'example_playbook.yml'


On Thu, Jun 22, 2023 at 10:23 AM Federico Rovelli 
wrote:

> I have an Ansible environment already configured (control server and
> managed servers) and I want to manage it with AWX.
> I have installed AWX and start a GUI but I don't know in what way I can
> connect AWX to my configuration manually  done.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bcbf1b51-306e-4325-beb8-f0867e2dac06n%40googlegroups.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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEcFzYxDiY7-4xj7RE2xO6rkv3JyC_Zrk%3DJ2v2M8SBNc1N9EUw%40mail.gmail.com.


[ansible-project] AWX question from a beginner :-(

2023-06-22 Thread Federico Rovelli
I have an Ansible environment already configured (control server and 
managed servers) and I want to manage it with AWX.
I have installed AWX and start a GUI but I don't know in what way I can 
connect AWX to my configuration manually  done.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bcbf1b51-306e-4325-beb8-f0867e2dac06n%40googlegroups.com.


[ansible-project] New release announcement : Ansible Community Package 7.7.0

2023-06-22 Thread Anwesha Das
Hello everyone,

We're happy to announce the release of the Ansible 7.7.0 package!

Ansible 7.7.0 includes ansible-core 2.14.7 as well as a curated set of
Ansible collections that provide a vast number of modules and plugins.

How to get it
-

This release is available on PyPI and can be installed with pip:

`$ python3 -m pip install ansible==7.7.0 --user`

The sources for this release can be found here:

Release tarball:

https://files.pythonhosted.org/packages/39/47/bef8fd8bc2b6e7b5058b61565959c91819eccb8be119a66f8524c0252c62/ansible-7.7.0.tar.gz

SHA256:

9c206ba515f13a0cc9c919d496218ba26df581755bdc39be85b074066c699a02

Wheel package:

https://files.pythonhosted.org/packages/f5/0f/fd3546905e2fae6fa8fc646d6698887c8e31f625d1016936f984223d2d95/ansible-7.7.0-py3-none-any.whl

SHA256:

4f8d346db1b6cec0f30b77935b3dce5633d76881186da839b58b34b48a089b92

What's the schedule for new Ansible releases after 7.7.0 ?
-

* This is the last release of Ansible version 7. No new feature or bug
fixes will come for Ansible 7.X.X. From now on we will only have 8.X.X
releases. The next scheduled release is Ansible 8.1.0 on 22nd June 2023.

* Please follow the announcement of the recent release of 2.14.7
https://groups.google.com/g/ansible-announce/c/7KktcxSN7zA
for detailed information on the release cadance of ansible-core.


Porting Help


A unified porting guide for collections that have opted-in is available here:
https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_7.html

Getting collection updates from Ansible 7 with older releases of ansible-core
--

Ansible 7 includes ansible-core 2.14.x. Based on your requirements,
you can get collection updates as they ship in the Ansible "batteries
included" package while continuing to use older versions of
ansible-core.

An ansible-galaxy requirements file based on the collections from
Ansible 7 has been made available for this use case:
https://github.com/ansible-community/ansible-build-data/blob/main/7/galaxy-requirements.yaml

After you download the requirements file, the collections can be
installed by running this command:

"ansible-galaxy collection install -r galaxy-requirements.yaml"

On behalf of the Ansible community, thank you and happy automating!

Cheers
Ansible Community Team

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHK8evgaNVkZYr9D0-QZdxo9oAXhnqBia2Psz%3DtcmZSWnGq-gg%40mail.gmail.com.


Re: [ansible-project] Need help on unarchive module

2023-06-22 Thread vibha rajnag
Thanku , I will give a try and let you know.
Thanks and Regards
Vibha Rajnag
8088760701


On Thu, Jun 22, 2023 at 4:38 PM Stephen Maher  wrote:

> You .gz file is unlikely and archive but just a zipped file, the module
> you refer is for archives such a tar/gzip etc.
>
> You can unzip with something similar to:
>
> - ansible.builtin.command:
> cmd: gunzip "{{ dest_file }}" "{{ decompressed_file }}"
> creates: "{{ decompressed_file }}"
>
>
> Regards
>
>
>
>
>
> On 22 Jun 2023, at 12:02, vibha rajnag  wrote:
>
> Hi All,
>
> I have some rest api call which is generating some result in csv.gz
> extention.
>
> I have used unarchive module in ansible.
> It says this module does not support .gz file which dies not have tar.
>
> Please help me, how i can uncompress this file.
>
> Thanks
> Vibha Rajnag
> 8088760701
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAN6it3pvK%2BbCEU%3DLvpqqEfsE2dr3gcavmL%3DY63NHpQsThgpvmQ%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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0FE8FC92-491F-4207-8C5A-54F485B0D05A%40gmail.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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAN6it3pmKYk1CB2FxDG-PuQGMhLothorJUBuOTC1CjR3D5u1CA%40mail.gmail.com.


Re: [ansible-project] Need help on unarchive module

2023-06-22 Thread Stephen Maher
You .gz file is unlikely and archive but just a zipped file, the module you 
refer is for archives such a tar/gzip etc.

You can unzip with something similar to:
- ansible.builtin.command:  
cmd: gunzip "{{ dest_file }}" "{{ decompressed_file }}"
creates: "{{ decompressed_file }}"

Regards





> On 22 Jun 2023, at 12:02, vibha rajnag  wrote:
> 
> Hi All,
> 
> I have some rest api call which is generating some result in csv.gz 
> extention. 
> 
> I have used unarchive module in ansible. 
> It says this module does not support .gz file which dies not have tar. 
> 
> Please help me, how i can uncompress this file. 
> 
> Thanks
> Vibha Rajnag 
> 8088760701
>
> 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAN6it3pvK%2BbCEU%3DLvpqqEfsE2dr3gcavmL%3DY63NHpQsThgpvmQ%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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0FE8FC92-491F-4207-8C5A-54F485B0D05A%40gmail.com.


[ansible-project] Need help on unarchive module

2023-06-22 Thread vibha rajnag
Hi All,

I have some rest api call which is generating some result in csv.gz
extention.

I have used unarchive module in ansible.
It says this module does not support .gz file which dies not have tar.

Please help me, how i can uncompress this file.

Thanks
Vibha Rajnag
8088760701

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAN6it3pvK%2BbCEU%3DLvpqqEfsE2dr3gcavmL%3DY63NHpQsThgpvmQ%40mail.gmail.com.


[ansible-project] Re: Ansible task execution until it completes

2023-06-22 Thread Aharonu
HI Vladimir,

Thank you again.

I think that is what I am looking for but it is when running with verbosity
( -).

Could you please go through below mentioned -vvv output where i can see
required output under MSG ( highlighted in blue):

Can we get output of only MSG instead of listing all other output so that i
can seethe required output?


TASK [run ontap rest cli command for vol move resister variabele]

***
task path: /home/user1/facts/netapp_volume_move.yml:38
< removed some data >
"attempts": 1,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (34 retries left).Result was: {
"attempts": 2,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (33 retries left).Result was: {
"attempts": 3,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (32 retries left).Result was: {
"attempts": 4,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}

*MSG:*

{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete':