Where is your actual tasks starts ?

Tasks is missing

On Wed 15. Jul 2020 at 20:17, 'Chris Bidwell - NOAA Federal' via Ansible
Project <ansible-project@googlegroups.com> wrote:

> Hey all,
>
> having an interesting issue with my latest rhel8 installation.
>
> Trying to install an rpm from a URL.  Here's my playbook:
>
> ---
> - name: Install zabbix
>   hosts: ALL_LINUX
>   become: yes
>   vars_files:
>     - passwd.yml
>     - vars.yml
>   ignore_errors: yes
>
>   vars:
>     os_version: "{{ ansible_distribution_major_version }}"
>     zabbix_repo: /etc/yum.repos.d/zabbix.repo
>     zabbix_config: /etc/zabbix/zabbix_agentd.conf
>
> *    zabbix_8:
> https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
> <https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm>*
>   zabbix_7:
> https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
>     zabbix_6:
> https://repo.zabbix.com/zabbix/4.4/rhel/6/x86_64/zabbix-release-4.4-1.el6.noarch.rpm
>     proxy_env:
>       http_proxy: 'http://proxy:8080'
>
>     - name: check if repo files exists
>       stat:
>         path: "{{ zabbix_repo }}"
>       register: zabbix_exists
>       tags:
>         - YUM
>         - CHECK
>
>     - name: "install 8 if not exists (proxy)"
>       dnf:
>         name: "{{ zabbix_8 }}"
>         state: latest
>         disable_gpg_check: yes
>       ignore_errors: true
>       environment: "{{ proxy_env }}"
>       when:
>         - ansible_distribution_major_version is version('8', '=')
>         - zabbix_exists.stat.exists == False
>         - ansible_default_ipv4.address is match('192\.168\.226\.') or
>           ansible_default_ipv4.address is match('10\.172\.226\.')
>       tags:
>         - PROXY
>         - YUM
>
>
> Here is my error output:
> TASK [install 8 if not exists (proxy)]
> *******************************************************************************************************************************************************************
> fatal: [corona-lx]: FAILED! => {"changed": false, "msg": "Failure
> downloading
> https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm,
> Request failed: <urlopen error [Errno 97] Address family not supported by
> protocol>", "results": []}
>
> Thought it may be dns-related but I'm able to resolve the name fine.
>
> --
> 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/CAHKi8Ci7hMJzUDYuDM1AVpnpYf9xH%2BjogANN6EzMOvWNF8AMrA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAHKi8Ci7hMJzUDYuDM1AVpnpYf9xH%2BjogANN6EzMOvWNF8AMrA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ%2BRxtQjbUTX%3DmEf6qh%2BR%2BSdh%3DKMRiC7TpbhJm3y9SaaRGQ%2B1w%40mail.gmail.com.

Reply via email to