[ansible-project] New release: ansible-base 2.10.5

2021-01-18 Thread Rick Elrod
Hi all- we're happy to announce that the general release of ansible-base 2.10.5 is now available! How to get it - $ pip install ansible-base==2.10.5 --user The tar.gz of the release can be found here: * ansible-base 2.10.5 https://pypi.python.org/packages/source/a/ansible-base/a

[ansible-project] New Ansible release 2.9.17

2021-01-18 Thread Rick Elrod
Hi all- we're happy to announce that the general release of Ansible 2.9.17 is now available! How do you get it? -- $ pip install ansible==2.9.17 --user The tar.gz of the release can be found here: * 2.9.17 https://releases.ansible.com/ansible/ansible-2.9.17.tar.gz SHA256: d

Re: [ansible-project] Determine last host in host list

2021-01-18 Thread flowerysong
On Monday, January 18, 2021 at 5:13:09 PM UTC-5 vbo...@gmail.com wrote: > On Mon, 18 Jan 2021 22:11:35 +0100 > Vladimir Botka wrote: > > > On Mon, 18 Jan 2021 11:32:05 -0800 (PST) > > "'Mark Tovey' via Ansible Project" > > wrote: > > > > > I need to determine how many hosts are left to be

Re: [ansible-project] Determine last host in host list

2021-01-18 Thread Vladimir Botka
On Mon, 18 Jan 2021 22:11:35 +0100 Vladimir Botka wrote: > On Mon, 18 Jan 2021 11:32:05 -0800 (PST) > "'Mark Tovey' via Ansible Project" > wrote: > > > I need to determine how many hosts are left to be worked on in a playbook > > run. I have set serial to 1 in the playbook so only one host wi

Re: [ansible-project] Determine last host in host list

2021-01-18 Thread Vladimir Botka
On Mon, 18 Jan 2021 11:32:05 -0800 (PST) "'Mark Tovey' via Ansible Project" wrote: > I need to determine how many hosts are left to be worked on in a playbook > run. I have set serial to 1 in the playbook so only one host will be > worked on at a time, and I have a long pause at the bottom of

[ansible-project] Determine last host in host list

2021-01-18 Thread 'Mark Tovey' via Ansible Project
I need to determine how many hosts are left to be worked on in a playbook run. I have set serial to 1 in the playbook so only one host will be worked on at a time, and I have a long pause at the bottom of the playbook to force a settling period between hosts. But if the current host is the la

Re: [ansible-project] Re: Ansible copy module does not preserve permissions of directories but only files

2021-01-18 Thread Stefan Hornburg (Racke)
On 1/18/21 6:35 PM, Weatherby,Gerard wrote: > I don’t recall claiming that I was sane, only that the shell module would > work. Plus, it is less work, being only five > letters instead of seven. > >From the official documentation: If you want to execute a command securely and predictably, it ma

Re: [ansible-project] Re: Ansible copy module does not preserve permissions of directories but only files

2021-01-18 Thread Weatherby,Gerard
I don’t recall claiming that I was sane, only that the shell module would work. Plus, it is less work, being only five letters instead of seven. -- Gerard Weatherby | Application Architect NMRbox | Department of Molecular Biology and Biophysics | UConn Health 263 Farmington Avenue, Farmington, CT

Re: [ansible-project] Re: Ansible copy module does not preserve permissions of directories but only files

2021-01-18 Thread Stefan Hornburg (Racke)
On 1/18/21 6:18 PM, Gerard Weatherby wrote: > Just use shell and copy: > > - hosts: all > >   become: true > >   tasks:   > >   - name: backup name > >     set_fact: > >       tdate: "bkp.{{ '%d%b%Y_%H%M%S' | strftime }}" > >   - name: Take Backup when dest_path and source path are the same.

[ansible-project] Re: Ansible copy module does not preserve permissions of directories but only files

2021-01-18 Thread Gerard Weatherby
Just use shell and copy: - hosts: all become: true tasks: - name: backup name set_fact: tdate: "bkp.{{ '%d%b%Y_%H%M%S' | strftime }}" - name: Take Backup when dest_path and source path are the same. shell: cp -ar /tmp/x "/tmp/x.{{ tdate }}" On Monday, January 18, 20

Re: [ansible-project] Ansible scripts run as expected from cli, not from AWX

2021-01-18 Thread Gerry Maddock
Will do, thanks On Mon, Jan 18, 2021 at 11:03 AM Dick Visser wrote: > I'm not familiar with AWX either. > But the people on the dedicated AWX list probably are: > https://groups.google.com/g/awx-project > I would give that a try. > > On Mon, 18 Jan 2021 at 14:46, madd...@gmail.com > wrote: > >

Re: [ansible-project] Ansible scripts run as expected from cli, not from AWX

2021-01-18 Thread Dick Visser
I'm not familiar with AWX either. But the people on the dedicated AWX list probably are: https://groups.google.com/g/awx-project I would give that a try. On Mon, 18 Jan 2021 at 14:46, madd...@gmail.com wrote: > > I've been using ansible for awhile now and love it. I just installed AWX to > try t

[ansible-project] Ansible scripts run as expected from cli, not from AWX

2021-01-18 Thread madd...@gmail.com
I've been using ansible for awhile now and love it. I just installed AWX to try to let some of my junior admins access to ansible through AWX web interface. I've never used AWX previously as ansible has been easy for me. When I first moved one of my self-made ansible playbooks over to AWX direc