Maybe throw a few "-v"s on the command line and give us the job log? Whether Python 2.7.5 is an issue will also depend on what version of Ansible you are using, and we don't know that either. With the limited info you've given, the only solution is to upgrade all your RHEL 7 servers to at least RHEL 8, which isn't what you were asking I don't think.
On Friday, September 8, 2023 at 9:15:51 AM UTC-4 lift...@gmail.com wrote: > We have the playbook below to copy an updated script to our servers. The > copy works to all RHEL 8 servers, but all RHEL 7 servers fails. I know > that the RHEL 7 servers has Python 2.7.5, could that be the issue? I don't > think that we can update Python on RHEL 7. > > --- > - hosts: all_hosts > become: yes > become_method: sudo > gather_facts: no > > tasks: > > - name: Send updated aide.check script > ansible.builtin.copy: > src: files/aide.check > dest: /etc/cron.daily > > Thanks, > Harry > -- 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/1f00c943-4c01-46da-b11b-95beba0d2788n%40googlegroups.com.