-
Notifications
You must be signed in to change notification settings - Fork 107
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
Increase yum lock timeout (workaround) #1879
Conversation
core/src/epicli/data/common/ansible/playbooks/roles/grafana/tasks/Debian.yml
Outdated
Show resolved
Hide resolved
I would use |
What we really would like to do is upgrade ansible to 2.10.3 or 2.10.4 and then use bugfixed "package" and remove chunks of code from this PR. That's why I'm not so enthusiastic about merging it 🤗 |
8018759
to
361285b
Compare
I can confirm that in ansible 2.10.5, passing module defaults to |
361285b
to
3632c9f
Compare
.../src/epicli/data/common/ansible/playbooks/roles/kubernetes_common/tasks/install-packages.yml
Show resolved
Hide resolved
- name: Remove docker-ce and docker-ce-selinux | ||
block: | ||
- name: Remove docker-ce | ||
package: | ||
yum: | ||
name: docker-ce-{{ ansible_facts.packages['docker-ce'][0].version }} | ||
state: absent | ||
|
||
- name: Remove docker-ce-selinux | ||
package: | ||
yum: | ||
name: docker-ce-selinux-{{ ansible_facts.packages['docker-ce-selinux'][0].version }} | ||
state: absent | ||
when: "'docker-ce-selinux' in ansible_facts.packages" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the last condition? If no, can it be combined to the one task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really know at this point 🤔 @to-bar can you shed some light here? 👍 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Today I would write this like:
- name: Remove Docker in version < 18.09 (RedHat)
when: ansible_os_family == "RedHat"
module_defaults:
yum: { lock_timeout: 300 }
block:
- name: Get information about installed packages as facts
package_facts:
manager: auto
- name: Remove docker-ce and docker-ce-selinux
yum:
name:
- docker-ce
- docker-ce-selinux
state: absent
when:
- "'docker-ce' in ansible_facts.packages"
- ansible_facts.packages['docker-ce'][0].version is version ('18.09', '<')
but not tested 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think another PR would be a better place for this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/azp run |
3632c9f
to
e74b4f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐜
* common: add yum lock_timeout (fix) * docker: add yum lock_timeout (fix) * elasticsearch: add yum lock_timeout (fix) * elasticsearch_curator: add yum lock_timeout (fix) * filebeat: add yum lock_timeout (fix) * firewall: add yum lock_timeout (fix) * grafana: add yum lock_timeout (fix) * kafka: add yum lock_timeout (fix) * kibana: add yum lock_timeout (fix) * kubernetes_common: add yum lock_timeout (fix) * logstash: add yum lock_timeout (fix) * opendistro_for_elasticsearch: add yum lock_timeout (fix) * postgresql: add yum lock_timeout (fix) * repository: add yum lock_timeout (fix) * upgrade: add yum lock_timeout (fix) * zookeeper: add yum lock_timeout (fix) * group_vars: make yum_lock_timeout configurable * Update 0.10 changelog * group_vars: coding-style adjustment
* common: add yum lock_timeout (fix) * docker: add yum lock_timeout (fix) * elasticsearch: add yum lock_timeout (fix) * elasticsearch_curator: add yum lock_timeout (fix) * filebeat: add yum lock_timeout (fix) * firewall: add yum lock_timeout (fix) * grafana: add yum lock_timeout (fix) * kafka: add yum lock_timeout (fix) * kibana: add yum lock_timeout (fix) * kubernetes_common: add yum lock_timeout (fix) * logstash: add yum lock_timeout (fix) * opendistro_for_elasticsearch: add yum lock_timeout (fix) * postgresql: add yum lock_timeout (fix) * repository: add yum lock_timeout (fix) * upgrade: add yum lock_timeout (fix) * zookeeper: add yum lock_timeout (fix) * group_vars: make yum_lock_timeout configurable * Update 0.10 changelog * group_vars: coding-style adjustment
* Increase yum lock timeout (workaround) (#1879) * common: add yum lock_timeout (fix) * docker: add yum lock_timeout (fix) * elasticsearch: add yum lock_timeout (fix) * elasticsearch_curator: add yum lock_timeout (fix) * filebeat: add yum lock_timeout (fix) * firewall: add yum lock_timeout (fix) * grafana: add yum lock_timeout (fix) * kafka: add yum lock_timeout (fix) * kibana: add yum lock_timeout (fix) * kubernetes_common: add yum lock_timeout (fix) * logstash: add yum lock_timeout (fix) * opendistro_for_elasticsearch: add yum lock_timeout (fix) * postgresql: add yum lock_timeout (fix) * repository: add yum lock_timeout (fix) * upgrade: add yum lock_timeout (fix) * zookeeper: add yum lock_timeout (fix) * group_vars: make yum_lock_timeout configurable * Update 0.10 changelog * group_vars: coding-style adjustment * Fix task "repository : Wait for yum lock to be released" for CentOS Minimal (#2078) * Bypass rhui-update-client on Azure * Do not use yum module waiting for yum lock to be released * Update changelog * Fix for restoring rhui-update-client (#2095) Co-authored-by: Michał Opala <[email protected]> Co-authored-by: to-bar <[email protected]>
* Increase yum lock timeout (workaround) (#1879) * common: add yum lock_timeout (fix) * docker: add yum lock_timeout (fix) * elasticsearch: add yum lock_timeout (fix) * elasticsearch_curator: add yum lock_timeout (fix) * filebeat: add yum lock_timeout (fix) * firewall: add yum lock_timeout (fix) * grafana: add yum lock_timeout (fix) * kafka: add yum lock_timeout (fix) * kibana: add yum lock_timeout (fix) * kubernetes_common: add yum lock_timeout (fix) * logstash: add yum lock_timeout (fix) * opendistro_for_elasticsearch: add yum lock_timeout (fix) * postgresql: add yum lock_timeout (fix) * repository: add yum lock_timeout (fix) * upgrade: add yum lock_timeout (fix) * zookeeper: add yum lock_timeout (fix) * group_vars: make yum_lock_timeout configurable * Update 0.10 changelog * group_vars: coding-style adjustment * Fix task "repository : Wait for yum lock to be released" for CentOS Minimal (#2078) * Bypass rhui-update-client on Azure * Do not use yum module waiting for yum lock to be released * Update changelog * Fix for restoring rhui-update-client (#2095) Co-authored-by: Michał Opala <[email protected]> Co-authored-by: to-bar <[email protected]>
* common: add yum lock_timeout (fix) * docker: add yum lock_timeout (fix) * elasticsearch: add yum lock_timeout (fix) * elasticsearch_curator: add yum lock_timeout (fix) * filebeat: add yum lock_timeout (fix) * firewall: add yum lock_timeout (fix) * grafana: add yum lock_timeout (fix) * kafka: add yum lock_timeout (fix) * kibana: add yum lock_timeout (fix) * kubernetes_common: add yum lock_timeout (fix) * logstash: add yum lock_timeout (fix) * opendistro_for_elasticsearch: add yum lock_timeout (fix) * postgresql: add yum lock_timeout (fix) * repository: add yum lock_timeout (fix) * upgrade: add yum lock_timeout (fix) * zookeeper: add yum lock_timeout (fix) * group_vars: make yum_lock_timeout configurable * Update 0.10 changelog * group_vars: coding-style adjustment
No description provided.