Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on RedHat #119

Closed
rohit-gohri opened this issue Apr 22, 2020 · 0 comments · Fixed by #120
Closed

Broken on RedHat #119

rohit-gohri opened this issue Apr 22, 2020 · 0 comments · Fixed by #120

Comments

@rohit-gohri
Copy link
Contributor

Describe the bug

  • Adding repo fails because it is missing become: yes

    - name: "RedHat | Add yum repository"
    yum_repository:
    name: influxdb
    description: InfluxDB Repository - RHEL $releasever
    baseurl: "{{ telegraf_yum_baseurl[ansible_distribution|lower] | default(telegraf_yum_baseurl['default']) }}"
    gpgcheck: yes
    gpgkey: https://repos.influxdata.com/influxdb.key
    when:
    - telegraf_agent_package_method == "repo"

  • This throws a syntax error

    http_proxy: "{{ http_proxy | default(None) | omit }}"
    https_proxy: "{{ https_proxy | default(None) | omit }}"

    I think should be default(omit) after looking at Debian.yml

Installation method/version

  • Github / latest

Ansible Version

ansible 2.9.7
  config file = /Users/rohitgohri/Projects/collegedunia/ansible-playbooks/ansible.cfg
  configured module search path = ['/Users/rohitgohri/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/rohitgohri/Projects/collegedunia/ansible-playbooks/.venv/lib/python3.7/site-packages/ansible
  executable location = /Users/rohitgohri/Projects/collegedunia/ansible-playbooks/.venv/bin/ansible
  python version = 3.7.6 (default, Dec 30 2019, 19:38:36) [Clang 10.0.0 (clang-1000.11.45.5)]

Targetted hosts
Concerns the following OS(es):

  • Amazon Linux 2

Expected behavior

yum_repository should have become

Additional context

rohit-gohri added a commit to rohit-gohri/ansible-telegraf that referenced this issue Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant