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

Fix repo management logic for redhat variants #26

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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