Skip to content

Commit

Permalink
Fix repo management logic for redhat variants
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Jan 9, 2024
1 parent 398407a commit 32c30a6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tasks/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
when: apt_key_module.failed
tags: skip_ansible_lint

- name: Install apt repository
- name: Manage apt repository
ansible.builtin.apt_repository:
repo: "{{ docker_deb_repo.url }}"
state: "{{ docker_repo_state }}"
Expand All @@ -54,16 +54,12 @@
- python3-pip
- python3-docker

- name: Install yum repository
- name: Manage yum repository

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (install, ubuntu2204, /lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / lint

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (install, ubuntu2004, /lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (install, debian11, /lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (install, rockylinux9, /usr/lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, ubuntu2204, /lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, ubuntu2004, /lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, debian11, /lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).

Check warning on line 57 in tasks/repo.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, rockylinux9, /usr/lib/systemd/systemd)

args[module]

Unsupported parameters for (basic.py) module: state. Supported parameters include: attributes, backup, checksum, ciphers, client_cert, client_key, decompress, dest, force, force_basic_auth, group, headers, http_agent, mode, owner, selevel, serole, setype, seuser, timeout, tmp_dest, unredirected_headers, unsafe_writes, url, url_password, url_username, use_gssapi, use_netrc, use_proxy, validate_certs (attr, password, username).
ansible.builtin.get_url:
url: "{{ docker_rpm_repo.url }}"
state: "{{ docker_repo_state }}"
dest: /etc/yum.repos.d/docker.repo
mode: 0644

- name: Remove yum repository
ansible.builtin.file:
dest: /etc/yum.repos.d/docker.repo
state: absent

- name: Flush handlers
ansible.builtin.meta: flush_handlers

0 comments on commit 32c30a6

Please sign in to comment.