Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi,

does `docker container list` show a container with name `ubuntu`? If
not, the error message is completely accurate. The
docker_container_exec module does something similar to `docker exec -w
/root ubuntu /bin/bash -c "ls -lah"`.

If you don't have a container called `ubuntu`, you first have to start
one so you can run a command in it. Or alternative, use the
docker_container module to create a new container and run that command
directly in it (with `detach: false`).

Cheers,
Felix



On Wed, 28 Jun 2023 14:15:02 -0700 (PDT)
William Flow  wrote:

> Ok that worked but I now keep getting a new error when I go to task 2:
> 
>  - name: run command
>   community.docker.docker_container_exec:
> container: ubuntu
> command: /bin/bash -c "ls -lah"
> chdir: /root
>   register: result
> 
> - name: Print stdout
>   debug:
> msg: '{{result}}'
> 
> I get this:
> fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not
> find container \"ubuntu\""}
> 
> am i suppose to pull it not sure here
> 
> 
> 
> 
> Thanks 
> 
> 
> Bill
> On Wednesday, June 28, 2023 at 1:36:44 PM UTC-7 Andrew Latham wrote:
> 
> > The default url is correct, why are you setting it to that address?
> >
> > from 
> > https://docs.ansible.com/ansible/latest/collections/community/docker/docker_login_module.html
> > registry_url string The registry URL. Default: "
> > https://index.docker.io/v1/;
> >
> >
> > via CLI
> > $ docker info | grep Registry 
> > Registry: https://index.docker.io/v1/
> >
> >
> > On Wed, Jun 28, 2023 at 2:29 PM William Flow 
> > wrote: 
> >> so bottom line I am using the community.docker collection and my
> >> code is pretty simple to start I just want to login to my registry
> >> and i am failing and do not have 
> >> a clue as to why my code is below and I get this error
> >>
> >> {
> >>   "msg": "Error connecting: Error while fetching server API
> >> version: ('Connection aborted.', FileNotFoundError(2, 'No such
> >> file or directory'))", "invocation": {
> >> "module_args": {
> >>   "registry_url": "registry.hub.docker.com",
> >>   "username": "x",
> >>   "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
> >>   "reauthorize": true,
> >>   "docker_host": "unix://var/run/docker.sock",
> >>   "api_version": "auto",
> >>   "timeout": 60,
> >>   "tls": false,
> >>   "use_ssh_client": false,
> >>   "validate_certs": false,
> >>   "debug": false,
> >>   "state": "present",
> >>   "config_path": "/root/.docker/config.json",
> >>   "tls_hostname": null,
> >>   "ca_cert": null,
> >>   "client_cert": null,
> >>   "client_key": null,
> >>   "ssl_version": null
> >> }
> >>   },
> >>   "_ansible_no_log": null,
> >>   "changed": false
> >> }
> >>
> >>
> >> ---
> >> - name: docker
> >>   hosts: localhost
> >>   gather_facts: false
> >>   collections:
> >> - community.docker
> >>
> >>   - name: Docker Login
> >>   community.docker.docker_login:
> >> registry_url: registry.hub.docker.com
> >> username: x
> >> password: X

-- 
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/20230629064547.2a521a00%40rovaniemi.


Re: [ansible-project] WSL1 localhost

2023-06-28 Thread jbor...@gmail.com
Localhost on the WSL side is the WSL Linux host itself and not the Windows 
one. Unfortunately you still need to target your Windows localhost using 
the winrm or psrp connection type.

Thanks

Jordan
On Thursday, June 29, 2023 at 1:50:54 AM UTC+10 John Petro wrote:

> If I am reading the output correctly, it looks like it can't find 
> powershell.  have you tried running a powershell command in WSL to see if 
> you get that expected output?
>
> --John
>
> On Wed, Jun 28, 2023 at 11:40 AM Filipe Gonçalves  
> wrote:
>
>> ### Summary
>>
>> When running a simple playbook that uses the ansible.windows.* 
>> module(i've tested some ansible.windows, not all) it always fails on 
>> runtime, I'm using WSL1 on Windows 10, so I imagine it is because it is 
>> recognizing localhost as the wsl virtual machine and not my windows 
>> machine, I'm unsure if this is the case since im new to Ansible, but I have 
>> researched this quite a bit and didn't find a concrete awnser.
>>
>> My inventory
>> [localhost]
>> 127.0.0.1 ansible_connection=local
>>
>> Can upgrading the WSL version to WSL2 fix this issue?
>>
>>
>> ### Ansible Version
>> $ ansible --version
>> ansible [core 2.14.5]
>>
>>
>> ### OS / Environment
>>
>> WSL1, Windows 10
>>
>> ### Steps to Reproduce
>> - name: test
>>   hosts: localhost
>>   gather_facts: false
>>
>>   tasks:
>> - name: Run basic PowerShell script
>>   ansible.windows.win_powershell:
>> script: |
>>   echo "Hello World"
>>
>>
>> ### Expected Results
>>
>> Hello World
>>
>> ### Actual Results
>> fatal: [127.0.0.1]: FAILED! => {
>> "changed": false,
>> "module_stderr": "/bin/sh: 1: powershell: not found\n",
>> "module_stdout": "",
>> "msg": "The module failed to execute correctly, you probably need to 
>> set the interpreter.\nSee stdout/stderr for the exact error",
>> "rc": 127
>> }
>>
>> -- 
>> 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/6164a4d5-a582-4586-ac4b-1c7403512ab8n%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/8217c342-314f-4e16-80b2-8919f2653f32n%40googlegroups.com.


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

2023-06-28 Thread jbor...@gmail.com
Literally set `ansible_shell_type=powershell` for your Windows hosts. It's 
what's in the docs you were linked to.
On Thursday, June 29, 2023 at 1:40:51 AM UTC+10 gonzalo diaz larenas wrote:

> I already did the generation of the public key, then I copied it to the 
> host that has Windows Pro, I did all these steps to the letter, in the 
> inventory.yml file I also made the corresponding changes, based on the help 
> of ansible- doc, but now it throws me a totally different error, I don't 
> really know what it is, I am attaching the corresponding files, I would 
> appreciate your help.
>
>
>
> El lun, 26 jun 2023 a las 9:45, Prady A () escribió:
>
>> Hi
>>
>> Login to your control machine with the user you control.
>> 1 . Generate the ssh key using ssh keygen. 
>>  # ssh keygen
>> 2. Copy the pub key to the same user where you created the key.
>> Ex : #ssh-copy-id admistrator@
>> 3. Try the adhoc command 
>>  Ex: #ansible -i inventory -m ping
>>
>> Read the ansible doc carefully again.
>>
>>
>>
>> On Mon, Jun 26, 2023 at 22:06, gonzalo diaz larenas <
>> gonzalodi...@gmail.com> wrote:
>>
>>> Dear, thank you for answering, I already did all those steps, and it 
>>> keeps throwing me the same error.
>>> Using the ssh command admini...@192.168.x.x I can connect directly 
>>> without any problem, I have it configured so that it does not ask me for a 
>>> password when making the ssh connection, the problem happens when I apply 
>>> any ansible ad-hoc command For example ansible -i inventory -m ping all, or 
>>> when I apply a playbook, I attach a file with the ssh connection directly 
>>> to the Windows 10 machine from a centralized Debian server, I would 
>>> appreciate your guidance.
>>>
>>>
>>> El jue, 22 jun 2023 a las 18:34, Brian Coca () 
>>> escribió:
>>>
 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-proje...@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
  
 
 .

>>> -- 
>>> 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/CAF-YWcbCkbuMChQNxSPQ7zq%2BLB4TUF9M97ggKQtjAxtRKn4vzw%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-proje...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAEuB3AqfzuyCkb74ra24%3DiKm585bj2t3VfBUZ1pr3%2BMAeoGYZA%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/560d59d2-5bb1-4f07-a014-13fe75561ed0n%40googlegroups.com.


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

2023-06-28 Thread Nico Kadel-Garcia
On Wed, Jun 28, 2023 at 11:40 AM gonzalo diaz larenas
 wrote:
>
> I already did the generation of the public key, then I copied it to the host 
> that has Windows Pro, I did all these steps to the letter, in the 
> inventory.yml file I also made the corresponding changes, based on the help 
> of ansible- doc, but now it throws me a totally different error, I don't 
> really know what it is, I am attaching the corresponding files, I would 
> appreciate your help.

"ping" is not your friend" for validating SSH access. Ping relies on
ICMP packets, which are often blocked by firewalls. "ssh-keyscan" is
your friend, especially since it will validate hostkey compatibility.
Obsolete versions of OpenSSH, such as those hosted by Microsoft's
DevOps git servers, do not provide hostkeys with contemporary
protocols. So it's worth checking that your SSH client is compatible
with your SSH server setup, especially if the SSH server is on
something as old as Windows 10.

Also python 2.7 is *way, way, way* out of date for ansible, and should
be updated to Python 3 ASAP.


> El lun, 26 jun 2023 a las 9:45, Prady A () escribió:
>>
>> Hi
>>
>> Login to your control machine with the user you control.
>> 1 . Generate the ssh key using ssh keygen.
>>  # ssh keygen
>> 2. Copy the pub key to the same user where you created the key.
>> Ex : #ssh-copy-id admistrator@
>> 3. Try the adhoc command
>>  Ex: #ansible -i inventory -m ping
>>
>> Read the ansible doc carefully again.
>>
>>
>>
>> On Mon, Jun 26, 2023 at 22:06, gonzalo diaz larenas 
>>  wrote:
>>>
>>> Dear, thank you for answering, I already did all those steps, and it keeps 
>>> throwing me the same error.
>>> Using the ssh command administrator@192.168.x.x I can connect directly 
>>> without any problem, I have it configured so that it does not ask me for a 
>>> password when making the ssh connection, the problem happens when I apply 
>>> any ansible ad-hoc command For example ansible -i inventory -m ping all, or 
>>> when I apply a playbook, I attach a file with the ssh connection directly 
>>> to the Windows 10 machine from a centralized Debian server, I would 
>>> appreciate your guidance.
>>>
>>>
>>> El jue, 22 jun 2023 a las 18:34, Brian Coca () escribió:

 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.
>>>
>>> --
>>> 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/CAF-YWcbCkbuMChQNxSPQ7zq%2BLB4TUF9M97ggKQtjAxtRKn4vzw%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/CAEuB3AqfzuyCkb74ra24%3DiKm585bj2t3VfBUZ1pr3%2BMAeoGYZA%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/CAF-YWcbpRCxuqScqs4dHuheL%2BfX-y_Wf%3DT8CHpk0VW%3DSN6ZFNg%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/CAOCN9rx3snS4k%3D0J8RwNRK1FGEvmuCRXo4oksRAWK_pdrOGvCA%40mail.gmail.com.


Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread William Flow
Ok that worked but I now keep getting a new error when I go to task 2:

 - name: run command
  community.docker.docker_container_exec:
container: ubuntu
command: /bin/bash -c "ls -lah"
chdir: /root
  register: result

- name: Print stdout
  debug:
msg: '{{result}}'

I get this:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find 
container \"ubuntu\""}

am i suppose to pull it not sure here




Thanks 


Bill
On Wednesday, June 28, 2023 at 1:36:44 PM UTC-7 Andrew Latham wrote:

> The default url is correct, why are you setting it to that address?
>
> from 
> https://docs.ansible.com/ansible/latest/collections/community/docker/docker_login_module.html
> registry_url string The registry URL. Default: "
> https://index.docker.io/v1/;
>
>
> via CLI
> $ docker info | grep Registry 
> Registry: https://index.docker.io/v1/
>
>
> On Wed, Jun 28, 2023 at 2:29 PM William Flow  wrote:
>
>> so bottom line I am using the community.docker collection and my code is 
>> pretty simple to start I just want to login to my registry and i am failing 
>> and do not have 
>> a clue as to why my code is below and I get this error
>>
>> {
>>   "msg": "Error connecting: Error while fetching server API version: 
>> ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))",
>>   "invocation": {
>> "module_args": {
>>   "registry_url": "registry.hub.docker.com",
>>   "username": "x",
>>   "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>   "reauthorize": true,
>>   "docker_host": "unix://var/run/docker.sock",
>>   "api_version": "auto",
>>   "timeout": 60,
>>   "tls": false,
>>   "use_ssh_client": false,
>>   "validate_certs": false,
>>   "debug": false,
>>   "state": "present",
>>   "config_path": "/root/.docker/config.json",
>>   "tls_hostname": null,
>>   "ca_cert": null,
>>   "client_cert": null,
>>   "client_key": null,
>>   "ssl_version": null
>> }
>>   },
>>   "_ansible_no_log": null,
>>   "changed": false
>> }
>>
>>
>> ---
>> - name: docker
>>   hosts: localhost
>>   gather_facts: false
>>   collections:
>> - community.docker
>>
>>   - name: Docker Login
>>   community.docker.docker_login:
>> registry_url: registry.hub.docker.com
>> username: x
>> password: X
>>
>> -- 
>> 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/f6565b9c-9641-489a-898f-ad941a91c819n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> - Andrew "lathama" Latham -
>

-- 
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/8f3be9cf-6a60-46db-b4fb-496a297cab1bn%40googlegroups.com.


Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi William,

> so bottom line I am using the community.docker collection and my code
> is pretty simple to start I just want to login to my registry and i
> am failing and do not have 
> a clue as to why my code is below and I get this error
> 
> {
>   "msg": "Error connecting: Error while fetching server API version: 
> ('Connection aborted.', FileNotFoundError(2, 'No such file or
> directory'))", "invocation": {

the error says that the module cannot talk to your Docker daemon.

You didn't configure any way to talk to the Daemon, so the default is
used, which means using a Unix socket /var/run/docker.sock.

When trying to access /var/run/docker.sock, a FileNotFoundError error
was raised.

You can probably resolve this by telling the module how to connect to
your Docker daemon. (The most easy way to do that is to use the
community.docker.docker module defaults group, then you only have to do
it once for all modules in your play. Alternatively you can use
environment variables, which should work fine for localhost - it's more
tricky on remote hosts.)

Cheers,
Felix


> "module_args": {
>   "registry_url": "registry.hub.docker.com",
>   "username": "x",
>   "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>   "reauthorize": true,
>   "docker_host": "unix://var/run/docker.sock",
>   "api_version": "auto",
>   "timeout": 60,
>   "tls": false,
>   "use_ssh_client": false,
>   "validate_certs": false,
>   "debug": false,
>   "state": "present",
>   "config_path": "/root/.docker/config.json",
>   "tls_hostname": null,
>   "ca_cert": null,
>   "client_cert": null,
>   "client_key": null,
>   "ssl_version": null
> }
>   },
>   "_ansible_no_log": null,
>   "changed": false
> }
> 
> 
> ---
> - name: docker
>   hosts: localhost
>   gather_facts: false
>   collections:
> - community.docker
> 
>   - name: Docker Login
>   community.docker.docker_login:
> registry_url: registry.hub.docker.com
> username: x
> password: X
> 

-- 
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/20230628224010.071fdc5e%40rovaniemi.


Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread Andrew Latham
The default url is correct, why are you setting it to that address?

from
https://docs.ansible.com/ansible/latest/collections/community/docker/docker_login_module.html
registry_url string The registry URL. Default: "https://index.docker.io/v1/;


via CLI
$ docker info | grep Registry
Registry: https://index.docker.io/v1/


On Wed, Jun 28, 2023 at 2:29 PM William Flow  wrote:

> so bottom line I am using the community.docker collection and my code is
> pretty simple to start I just want to login to my registry and i am failing
> and do not have
> a clue as to why my code is below and I get this error
>
> {
>   "msg": "Error connecting: Error while fetching server API version:
> ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))",
>   "invocation": {
> "module_args": {
>   "registry_url": "registry.hub.docker.com",
>   "username": "x",
>   "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>   "reauthorize": true,
>   "docker_host": "unix://var/run/docker.sock",
>   "api_version": "auto",
>   "timeout": 60,
>   "tls": false,
>   "use_ssh_client": false,
>   "validate_certs": false,
>   "debug": false,
>   "state": "present",
>   "config_path": "/root/.docker/config.json",
>   "tls_hostname": null,
>   "ca_cert": null,
>   "client_cert": null,
>   "client_key": null,
>   "ssl_version": null
> }
>   },
>   "_ansible_no_log": null,
>   "changed": false
> }
>
>
> ---
> - name: docker
>   hosts: localhost
>   gather_facts: false
>   collections:
> - community.docker
>
>   - name: Docker Login
>   community.docker.docker_login:
> registry_url: registry.hub.docker.com
> username: x
> password: X
>
> --
> 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/f6565b9c-9641-489a-898f-ad941a91c819n%40googlegroups.com
> 
> .
>


-- 
- Andrew "lathama" Latham -

-- 
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/CA%2Bqj4S-Xcjt_Ady8HXYubutVsu1XLgLW8%3DRP-5SXJQ_9_UpzDQ%40mail.gmail.com.


[ansible-project] community.docker.docker_login issue

2023-06-28 Thread William Flow
so bottom line I am using the community.docker collection and my code is 
pretty simple to start I just want to login to my registry and i am failing 
and do not have 
a clue as to why my code is below and I get this error

{
  "msg": "Error connecting: Error while fetching server API version: 
('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))",
  "invocation": {
"module_args": {
  "registry_url": "registry.hub.docker.com",
  "username": "x",
  "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
  "reauthorize": true,
  "docker_host": "unix://var/run/docker.sock",
  "api_version": "auto",
  "timeout": 60,
  "tls": false,
  "use_ssh_client": false,
  "validate_certs": false,
  "debug": false,
  "state": "present",
  "config_path": "/root/.docker/config.json",
  "tls_hostname": null,
  "ca_cert": null,
  "client_cert": null,
  "client_key": null,
  "ssl_version": null
}
  },
  "_ansible_no_log": null,
  "changed": false
}


---
- name: docker
  hosts: localhost
  gather_facts: false
  collections:
- community.docker

  - name: Docker Login
  community.docker.docker_login:
registry_url: registry.hub.docker.com
username: x
password: X

-- 
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/f6565b9c-9641-489a-898f-ad941a91c819n%40googlegroups.com.


Re: [ansible-project] abstracting loop items (ditcionary)

2023-06-28 Thread Todd Lewis
The specific error, "'list objec' has no attribute 'address'", is pretty 
clear. You're trying to take some short-cuts with your data 
manipulation, and Ansible can't read your mind wrt what you're really 
trying to accomplish. Your intuition is correct though, that this is not 
so much an issue with the module but rather a data manipulation problem.


I think I understand what you want, though. In fact, I wrote a filter 
years ago to avoid repeating data in similar circumstances. I've put off 
responding, partly because I had hoped to see what some of the regulars 
around ansible-project proposed, and partly because it'd be kind of 
crazy to suggest incorporating my filter into your project. However, 
no-one has responded yet, and the more I look at your problem the more 
it feels like this might be the shortest path to a workable solution.


Before I present my toy playbook, let me just say that you've thrown 
some real brain-benders at me with this data, embedding some fields 
within others and, if you /really/ want DRY (don't repeat yourself) even 
throwing in a dig with deferred Jinja2 evaluation. Ouch! Even still, I 
think the result, which can all go into a single vars section, is more 
maintainable that a bunch of set_fact tasks doing obscure Jinja2 tricks.


Enough qualifiers. Here's my toy playbook:

---
- name: Abstracting loop items
  hosts: localhost
  tasks:
- name: Debug some data manips
  ansible.builtin.debug:
msg: "{{ kcl }}"
  vars:
__kcl:
  pw_crypt: scram-sha-256
  conntype: host
  db: keycloak
  polymac:
- - ip: 172.27.130.214  # "10.4.253.146"
role: keycloak
  - ip: 172.27.130.215
role: eycloakk
pw_crypt: cleartext
  - ip: 172.27.130.216
role: ycloakke
  - ip: 172.27.130.217
role: cloakkey
- address: '%ip%/32'
  fqdn: "{{ '{' ~ '{' }} lookup('community.general.dig', '%ip%/PTR') | 
trim('.') }}"
  comment: "%role% - {{ '{' ~ '{' }} lookup('community.general.dig', 
'%ip%/PTR') | trim('.') }}"
  database: "%db%%role%"
  pw_crypt: "%pw_crypt%"
kcl: "{{ lookup('items', __kcl | polymac ) }}"

And here's the output:

TASK [Debug some data manips] ***
ok: [localhost] => {
"msg": [
{
"address": "172.27.130.214/32",
"comment": "keycloak - itvpn-214.vpn.my.org",
"conntype": "host",
"database": "keycloakkeycloak",
"db": "keycloak",
"fqdn": "itvpn-214.vpn.my.org",
"pw_crypt": "scram-sha-256"
},
{
"address": "172.27.130.215/32",
"comment": "eycloakk - itvpn-215.vpn.my.org",
"conntype": "host",
"database": "keycloakeycloakk",
"db": "keycloak",
"fqdn": "itvpn-215.vpn.my.org",
"pw_crypt": "cleartext"
},
{
"address": "172.27.130.216/32",
"comment": "ycloakke - itvpn-216.vpn.my.org",
"conntype": "host",
"database": "keycloakycloakke",
"db": "keycloak",
"fqdn": "itvpn-216.vpn.my.org",
"pw_crypt": "scram-sha-256"
},
{
"address": "172.27.130.217/32",
"comment": "cloakkey - itvpn-217.vpn.my.org",
"conntype": "host",
"database": "keycloakcloakkey",
"db": "keycloak",
"fqdn": "itvpn-217.vpn.my.org",
"pw_crypt": "scram-sha-256"
}
]
}

The polymac filter is available in a gist on github at 
https://gist.github.com/utoddl/fc303d5b9dcad58871d2956cfed0aa68.


Some explanation is in order. Lots, in fact. "polymac" is both a filter, 
and a key in the __kcl dict. The filter looks for such eponymous keys to 
find its instructions regarding how the dict should be transformed. Each 
polymac key (there can be more than one) contains a list. The first item 
defines one or more sets of "input" data. In this case, it's four sets 
of data, and each of those contains an "ip" and a "role". Note that one 
of them also contains a "pw_crypt" string of value "cleartext". More on 
that later.


So, that's polymac[0] described. Subsequent elements of the polymac list 
(in this case there is only one) contain templates for the output dicts. 
In this example, the sole template dict contains five field definitions: 
"address", "fqdn", "comment", "database", and "pw_crypt". However, if 
you look at the output, each resulting dict contains seven attributes, 
not five. These additional attributes are the three siblings of the 
original "polymac" key: "pw_crypt", "conntype", and "db", and they act 
as defaults for all the generated dicts. Note that one of these 
attributes, "pw_crypt" is also in the sole template dict where it has 
the value 

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

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi Nico,

> Felix, the provenance of the "ansible" package is really a bundle of
> "ansible galaxy collections", It's not from a single project. It's
> built from more than 100 distinct modules, most of which have their
> own git repo. Take a look at this to see the build tool used to
> generate that tarball.:

I'm fully aware of how the ansible PyPI package is built.

> Can we just fix the one thing right now?

We have two things here: we have the ansible PyPI package, and we have
Ansible as the 'thing' that users use.

The new suggestion is perfect from a technical point of view, when
talking about the ansible PyPI package. But it is NOT perfect when
looking at Ansible, as described by the Ansible docsite
(https://docs.ansible.com/ansible/latest/) and the Ansible changelog
(https://github.com/ansible-community/ansible-build-data/blob/main/8/CHANGELOG-v8.rst).

I'm against changing something so that one aspect of it is better, but
another gets worse, without this being properly discussed first.

Cheers,
Felix




> 
> Nico Kadel-Garicia
> 
> 
> 
> 
> > On Wed, 28 Jun 2023 10:44:09 +0200
> > Anwesha Das  wrote:
> >  
> > > Hello Nico,
> > >
> > > On Fri, Jun 23, 2023 at 12:13 PM Nico Kadel-Garcia
> > >  wrote:
> > >
> > > 
> > >  
> > > > Please: stop claiming this. ansible-core is a required
> > > > dependency, not contained within the ansible packages. Pip
> > > > install builds the dependency, but it can be built and
> > > > installed quite independently of the "ansible" distribution.  
> > >
> > > Thank you for pointing this out. I truly appreciate it.
> > >
> > > I will edit the wording of the release announcements to match to
> > > what happens, under the hood, technically. How does this sound?
> > >
> > > ```
> > > Ansible 8.1.0 requires latest version of ansible-core 2.15 and
> > > includes a curated set of
> > > Ansible collections that provides a vast number of modules and
> > > plugins. ```
> > > 
> > >
> > > Looking forward to hearing from you.
> > >
> > > Cheers,
> > > Anwesha

-- 
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/20230628211633.1fc25bd5%40rovaniemi.


Re: [ansible-project] Configuration Drift

2023-06-28 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Good point. I should add that all our Linux servers also have aide installed 
and configured for performing file integrity checking.

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123

On Jun 28, 2023, at 11:45 AM, Brian Coca  wrote:

Ansible CAN do many things, does not mean it should, see this old
presentation where i show an example of 'file alteration monitoring'
https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.slideshare.net%2Fbcoca%2Fansible-tips-=05%7C01%7Cwalter.rowe%40nist.gov%7Ce6f703ac677c43128bac08db77ef1afd%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638235641059517237%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=2W0aGHIvU2qZMcD2N6O%2B1t4dygx06rcDVHeP%2BjvrUCI%3D=0
 tricks  slide 15
(cowsay kitty mentions aide/osiris/tripwire).


--
--
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://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2FCACVha7cYusvntKFN8KuE1znVaAqn5rO-tpjzONpw%252BXONcmxkdA%2540mail.gmail.com=05%7C01%7Cwalter.rowe%40nist.gov%7Ce6f703ac677c43128bac08db77ef1afd%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638235641059517237%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=xyXKl1lGywXWqQOIMAIPWJBMWWQl0q6cOYkFILu7KEU%3D=0.

-- 
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/8CFB4E06-3A9D-482D-8618-794E53FDF806%40nist.gov.


Re: [ansible-project] checking to see if cron entry exists

2023-06-28 Thread Brian Coca
If you want to just see if things 'would change':
`check_mode: true`

not all modules support it, but both cron and lininefile modules say they do
-- 
--
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/CACVha7fneTc-FWnh3enC%3DQApRr9uT6D8Gv75%2BE7%3DWz-DuCNppQ%40mail.gmail.com.


Re: [ansible-project] WSL1 localhost

2023-06-28 Thread John Petro
If I am reading the output correctly, it looks like it can't find
powershell.  have you tried running a powershell command in WSL to see if
you get that expected output?

--John

On Wed, Jun 28, 2023 at 11:40 AM Filipe Gonçalves <
filipe.pereira@gmail.com> wrote:

> ### Summary
>
> When running a simple playbook that uses the ansible.windows.* module(i've
> tested some ansible.windows, not all) it always fails on runtime, I'm using
> WSL1 on Windows 10, so I imagine it is because it is recognizing localhost
> as the wsl virtual machine and not my windows machine, I'm unsure if this
> is the case since im new to Ansible, but I have researched this quite a bit
> and didn't find a concrete awnser.
>
> My inventory
> [localhost]
> 127.0.0.1 ansible_connection=local
>
> Can upgrading the WSL version to WSL2 fix this issue?
>
>
> ### Ansible Version
> $ ansible --version
> ansible [core 2.14.5]
>
>
> ### OS / Environment
>
> WSL1, Windows 10
>
> ### Steps to Reproduce
> - name: test
>   hosts: localhost
>   gather_facts: false
>
>   tasks:
> - name: Run basic PowerShell script
>   ansible.windows.win_powershell:
> script: |
>   echo "Hello World"
>
>
> ### Expected Results
>
> Hello World
>
> ### Actual Results
> fatal: [127.0.0.1]: FAILED! => {
> "changed": false,
> "module_stderr": "/bin/sh: 1: powershell: not found\n",
> "module_stdout": "",
> "msg": "The module failed to execute correctly, you probably need to
> set the interpreter.\nSee stdout/stderr for the exact error",
> "rc": 127
> }
>
> --
> 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/6164a4d5-a582-4586-ac4b-1c7403512ab8n%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/CAPAjob8FVHD365ozTR0zEvRWQHmZe294niAzCe20H6_i5uRhxw%40mail.gmail.com.


Re: [ansible-project] Configuration Drift

2023-06-28 Thread Brian Coca
Ansible CAN do many things, does not mean it should, see this old
presentation where i show an example of 'file alteration monitoring'
https://www.slideshare.net/bcoca/ansible-tips- tricks  slide 15
(cowsay kitty mentions aide/osiris/tripwire).


-- 
--
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/CACVha7cYusvntKFN8KuE1znVaAqn5rO-tpjzONpw%2BXONcmxkdA%40mail.gmail.com.


[ansible-project] WSL1 localhost

2023-06-28 Thread Filipe Gonçalves
### Summary

When running a simple playbook that uses the ansible.windows.* module(i've 
tested some ansible.windows, not all) it always fails on runtime, I'm using 
WSL1 on Windows 10, so I imagine it is because it is recognizing localhost 
as the wsl virtual machine and not my windows machine, I'm unsure if this 
is the case since im new to Ansible, but I have researched this quite a bit 
and didn't find a concrete awnser.

My inventory
[localhost]
127.0.0.1 ansible_connection=local

Can upgrading the WSL version to WSL2 fix this issue?


### Ansible Version
$ ansible --version
ansible [core 2.14.5]


### OS / Environment

WSL1, Windows 10

### Steps to Reproduce
- name: test
  hosts: localhost
  gather_facts: false

  tasks:
- name: Run basic PowerShell script
  ansible.windows.win_powershell:
script: |
  echo "Hello World"


### Expected Results

Hello World

### Actual Results
fatal: [127.0.0.1]: FAILED! => {
"changed": false,
"module_stderr": "/bin/sh: 1: powershell: not found\n",
"module_stdout": "",
"msg": "The module failed to execute correctly, you probably need to 
set the interpreter.\nSee stdout/stderr for the exact error",
"rc": 127
}

-- 
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/6164a4d5-a582-4586-ac4b-1c7403512ab8n%40googlegroups.com.


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

2023-06-28 Thread gonzalo diaz larenas
I already did the generation of the public key, then I copied it to the
host that has Windows Pro, I did all these steps to the letter, in the
inventory.yml file I also made the corresponding changes, based on the help
of ansible- doc, but now it throws me a totally different error, I don't
really know what it is, I am attaching the corresponding files, I would
appreciate your help.



El lun, 26 jun 2023 a las 9:45, Prady A ()
escribió:

> Hi
>
> Login to your control machine with the user you control.
> 1 . Generate the ssh key using ssh keygen.
>  # ssh keygen
> 2. Copy the pub key to the same user where you created the key.
> Ex : #ssh-copy-id admistrator@
> 3. Try the adhoc command
>  Ex: #ansible -i inventory -m ping
>
> Read the ansible doc carefully again.
>
>
>
> On Mon, Jun 26, 2023 at 22:06, gonzalo diaz larenas <
> gonzalodiazlare...@gmail.com> wrote:
>
>> Dear, thank you for answering, I already did all those steps, and it
>> keeps throwing me the same error.
>> Using the ssh command administrator@192.168.x.x I can connect directly
>> without any problem, I have it configured so that it does not ask me for a
>> password when making the ssh connection, the problem happens when I apply
>> any ansible ad-hoc command For example ansible -i inventory -m ping all, or
>> when I apply a playbook, I attach a file with the ssh connection directly
>> to the Windows 10 machine from a centralized Debian server, I would
>> appreciate your guidance.
>>
>>
>> El jue, 22 jun 2023 a las 18:34, Brian Coca ()
>> escribió:
>>
>>> 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
>>> 
>>> .
>>>
>> --
>> 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/CAF-YWcbCkbuMChQNxSPQ7zq%2BLB4TUF9M97ggKQtjAxtRKn4vzw%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/CAEuB3AqfzuyCkb74ra24%3DiKm585bj2t3VfBUZ1pr3%2BMAeoGYZA%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/CAF-YWcbpRCxuqScqs4dHuheL%2BfX-y_Wf%3DT8CHpk0VW%3DSN6ZFNg%40mail.gmail.com.


Re: [ansible-project] checking to see if cron entry exists

2023-06-28 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
lineinfile wants to add the line if it is not "present". You can collapse these 
two tasks into a single task using just linieinfile.

Remember that each task is describing an "desired state". In a single task you 
can look for and add the line if missing. If it is present the task will make 
no change. if it is missing the task will add it.

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123

On Jun 28, 2023, at 10:55 AM, Kathy L  wrote:

I am checking to see if a cron job exists and if it doesn't, add it.  Because 
we use random times (for both hours and minutes) I cannot search for the entire 
line.  Here is what I have:

- name: UPDATE_WAZUH
  lineinfile:
path: /var/spool/cron/crontabs/root
regexp: "find /var/log/nginx/nginx_error.log"
state: present
 register: remove_nginx_logs

- name: UPDATE_WAZUH
  cron:
name: "empty nginx logs"
minute: "{{ 59|random }}"
hour: "{{ 23|random }}"
job: 'find /var/log/nginx/nginx_error.log -name "*.gz" -type f -mtime 
+15 -delete'
when: remove_wazuh_logs is defined

One of the errors I get is:

   line is required with state=present

When I try adding line to lineinfile like this:

- name: UPDATE_WAZUH
  lineinfile:
path: /var/spool/cron/crontabs/root
regexp: "find /var/log/nginx/nginx_error.log"
state: present
line: 'find /var/log/nginx/nginx_error.log -name "*.gz" -type f -mtime 
+15 -delete'
 register: remove_nginx_logs


It still fails.  How can I accomplish this?

--
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/52410dee-5afe-405d-94da-bcf0074d9fe4n%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/CDE60797-936D-4613-9E85-1AD431C8F7EE%40nist.gov.


[ansible-project] checking to see if cron entry exists

2023-06-28 Thread Kathy L
I am checking to see if a cron job exists and if it doesn't, add it.  
Because we use random times (for both hours and minutes) I cannot search 
for the entire line.  Here is what I have:

- name: UPDATE_WAZUH
  lineinfile:
path: /var/spool/cron/crontabs/root
regexp: "find /var/log/nginx/nginx_error.log"
state: present
 register: remove_nginx_logs

- name: UPDATE_WAZUH
  cron:
name: "empty nginx logs"
minute: "{{ 59|random }}"
hour: "{{ 23|random }}"
job: 'find /var/log/nginx/nginx_error.log -name "*.gz" -type f 
-mtime +15 -delete'
when: remove_wazuh_logs is defined

One of the errors I get is:

   line is required with state=present

When I try adding line to lineinfile like this:

- name: UPDATE_WAZUH
  lineinfile:
path: /var/spool/cron/crontabs/root
regexp: "find /var/log/nginx/nginx_error.log"
state: present
line: 'find /var/log/nginx/nginx_error.log -name "*.gz" -type f 
-mtime +15 -delete' 
 register: remove_nginx_logs


It still fails.  How can I accomplish this?

-- 
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/52410dee-5afe-405d-94da-bcf0074d9fe4n%40googlegroups.com.


Re: [ansible-project] Configuration Drift

2023-06-28 Thread John Petro
Oh, thanks. that is really helpful.  In parallel, we have been kicking the
tires on Insights for our RHEL servers too.  We have a few Ubuntu servers,
so obviously that won't work for them, but I do like the idea of using a
Tripwire/AIDE type tool and then passing it off to Ansible if needed.  You
have definitely given me some things to ponder.

--John

On Tue, Jun 27, 2023 at 5:18 PM Brian Coca  wrote:

> For drift control i've found most CM systems to be lacking. I've
> always used something like tripwire/aide to detect file changes and
> correlate that with the proper configuration updates. Puppet and other
> 'resident' systems seemsgood for this but they run every Nminutes
> doing a lot of work to verify things, instead of using something like
> inotify to trigger immediate response from a passive kenrel hook (via
> fam deamon or something as simple as incron). This ends up being a LOT
> more efficient and avoids a lot of useless processing.
>
> --
> --
> 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/CACVha7e7L_4mCsjTXxW7aK0TpastFRmZ3sobo7aCc6%3Dhtk83jA%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/CAPAjob9_qGAnXG6qFmmWVkjjpsaY%2BBmYC6H%3D75y3qe8pBjoC8w%40mail.gmail.com.


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

2023-06-28 Thread Nico Kadel-Garcia
On Wed, Jun 28, 2023 at 8:15 AM 'Felix Fontein' via Ansible Project
 wrote:
>
> Hi Anwesha,
>
> before we start modifying the announcement, can we please first have it
> in a public GH repo - say
> https://github.com/ansible-community/ansible-build-data/tree/main/docs
> - and then discuss these changes in a PR so it's clear to everyone
> involved what exactly the diff is?
>
> Cheers,
> Felix

Felix, the provenance of the "ansible" package is really a bundle of
"ansible galaxy collections", It's not from a single project. It's
built from more than 100 distinct modules, most of which have their
own git repo. Take a look at this to see the build tool used to
generate that tarball.:


https://github.com/ansible-community/ansible-build-data/blob/main/8/ansible-8.1.0.deps

And yes, this is very confusing, especially because ansible-core comes
from the mismatched git repo name:

https://github.com/ansible/ansible

Can we just fix the one thing right now?

Nico Kadel-Garicia




> On Wed, 28 Jun 2023 10:44:09 +0200
> Anwesha Das  wrote:
>
> > Hello Nico,
> >
> > On Fri, Jun 23, 2023 at 12:13 PM Nico Kadel-Garcia 
> > wrote:
> >
> > 
> >
> > > Please: stop claiming this. ansible-core is a required dependency,
> > > not contained within the ansible packages. Pip install builds the
> > > dependency, but it can be built and installed quite independently of
> > > the "ansible" distribution.
> >
> > Thank you for pointing this out. I truly appreciate it.
> >
> > I will edit the wording of the release announcements to match to what
> > happens, under the hood, technically. How does this sound?
> >
> > ```
> > Ansible 8.1.0 requires latest version of ansible-core 2.15 and
> > includes a curated set of
> > Ansible collections that provides a vast number of modules and
> > plugins. ```
> > 
> >
> > Looking forward to hearing from you.
> >
> > Cheers,
> > Anwesha
> >
>
> --
> 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/20230628141500.405e95f7%40rovaniemi.

-- 
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/CAOCN9rxoz7E37O3_oJWa3ianC6FDAoLdG8HFvWXta6GDEMp8TQ%40mail.gmail.com.


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

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi Anwesha,

before we start modifying the announcement, can we please first have it
in a public GH repo - say
https://github.com/ansible-community/ansible-build-data/tree/main/docs
- and then discuss these changes in a PR so it's clear to everyone
involved what exactly the diff is?

Cheers,
Felix



On Wed, 28 Jun 2023 10:44:09 +0200
Anwesha Das  wrote:

> Hello Nico,
> 
> On Fri, Jun 23, 2023 at 12:13 PM Nico Kadel-Garcia 
> wrote:
> 
> 
> 
> > Please: stop claiming this. ansible-core is a required dependency,
> > not contained within the ansible packages. Pip install builds the
> > dependency, but it can be built and installed quite independently of
> > the "ansible" distribution.  
> 
> Thank you for pointing this out. I truly appreciate it.
> 
> I will edit the wording of the release announcements to match to what
> happens, under the hood, technically. How does this sound?
> 
> ```
> Ansible 8.1.0 requires latest version of ansible-core 2.15 and
> includes a curated set of
> Ansible collections that provides a vast number of modules and
> plugins. ```
> 
> 
> Looking forward to hearing from you.
> 
> Cheers,
> Anwesha
> 

-- 
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/20230628141500.405e95f7%40rovaniemi.


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

2023-06-28 Thread Nico Kadel-Garcia
On Wed, Jun 28, 2023 at 4:44 AM Anwesha Das  wrote:
>
> Hello Nico,
>
> On Fri, Jun 23, 2023 at 12:13 PM Nico Kadel-Garcia  wrote:
>
> 
>
> > Please: stop claiming this. ansible-core is a required dependency, not
> > contained within the ansible packages. Pip install builds the
> > dependency, but it can be built and installed quite independently of
> > the "ansible" distribution.
>
> Thank you for pointing this out. I truly appreciate it.
>
> I will edit the wording of the release announcements to match to what
> happens, under the hood, technically. How does this sound?

That sounds *fabulous*. Thank you very much. The ansible documentation
is a bit vague on the distinction as well.

 
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-upgrading-ansible

If you're revising the release or installation notes, perhaps you
could mention the python version requirement? The current ansib-core
2.15 or later  requires python 3.11 or later. And some supported
systems, like RHEL 7, don't have such recent python as a supported
option. It's why I would recommend using RHEL 8 or 9 for ansible
servers.

-- 
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/CAOCN9rwMP2bJk_E_dJbWfcWPhbuPWzUuGqrAiEHHXPaVw2OT_A%40mail.gmail.com.


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

2023-06-28 Thread Anwesha Das
Hello Nico,

On Fri, Jun 23, 2023 at 12:13 PM Nico Kadel-Garcia  wrote:



> Please: stop claiming this. ansible-core is a required dependency, not
> contained within the ansible packages. Pip install builds the
> dependency, but it can be built and installed quite independently of
> the "ansible" distribution.

Thank you for pointing this out. I truly appreciate it.

I will edit the wording of the release announcements to match to what
happens, under the hood, technically. How does this sound?

```
Ansible 8.1.0 requires latest version of ansible-core 2.15 and
includes a curated set of
Ansible collections that provides a vast number of modules and plugins.
```


Looking forward to hearing from you.

Cheers,
Anwesha

-- 
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/CAHK8evh4881%2Bcpy_vEH3ugDHdQ%3DUcDqq1nh_tYNX%3DnY76c%2B2Kg%40mail.gmail.com.