Truthy warnings with ansible-lint

This commit is contained in:
Jeremy Gardais 2021-09-01 11:52:45 +02:00
parent 0a00fd393d
commit 134640f473
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 8 additions and 7 deletions

View File

@ -3,6 +3,7 @@
### Fix ### Fix
* Use key_url instead of [deprecated SKS keyserver](https://sks-keyservers.net/). * Use key_url instead of [deprecated SKS keyserver](https://sks-keyservers.net/).
* Truthy warnings with ansible-lint.
### Enhancements ### Enhancements

View File

@ -16,7 +16,7 @@ A role to manage OpenManage (via omreport, omconfig,…), it's web interface OMS
* **openmanage__repositories**: List of APT repositories that can provide OpenManage. Each entry is a dict [default: `See default/main.yml`]. * **openmanage__repositories**: List of APT repositories that can provide OpenManage. Each entry is a dict [default: `See default/main.yml`].
* **openmanage__deploy_state**: The desired state this role should achieve [default for Dell hardware: `present`]. * **openmanage__deploy_state**: The desired state this role should achieve [default for Dell hardware: `present`].
* **openmanage__install_recommends**: If recommended packages should be install [default: `False`]. * **openmanage__install_recommends**: If recommended packages should be install [default: `false`].
* **openmanage__dep_packages**: List of dependencies packages to be able to run racadm [default: `See default/main.yml`]. * **openmanage__dep_packages**: List of dependencies packages to be able to run racadm [default: `See default/main.yml`].
* **openmanage__base_packages**: List of base packages for all racadm base usage [default: `See default/main.yml`]. * **openmanage__base_packages**: List of base packages for all racadm base usage [default: `See default/main.yml`].
* **openmanage__stretch_packages**: List of some packages specific to Debian Stretch (or Ubuntu Xenial) and previous versions [default: `See default/main.yml`]. * **openmanage__stretch_packages**: List of some packages specific to Debian Stretch (or Ubuntu Xenial) and previous versions [default: `See default/main.yml`].

View File

@ -77,12 +77,12 @@ openmanage__deploy_state: '{{ "present"
# #
# If recommended packages should be install? Possible options: # If recommended packages should be install? Possible options:
# #
# ``False`` # ``false``
# Default. # Default.
# #
# ``True`` # ``true``
# #
openmanage__install_recommends: False openmanage__install_recommends: false
# ]]] # ]]]
# .. envvar:: openmanage__dep_packages [[[ # .. envvar:: openmanage__dep_packages [[[
# #

View File

@ -7,7 +7,7 @@
## Add repository ## Add repository
- name: Add OpenManage repository - name: Add OpenManage repository
apt_repository: apt_repository:
update_cache: False update_cache: false
repo: '{{ item.repo }}' repo: '{{ item.repo }}'
mode: '{{ item.mode | d(omit) }}' mode: '{{ item.mode | d(omit) }}'
filename: '{{ item.filename | d(omit) }}' filename: '{{ item.filename | d(omit) }}'
@ -34,11 +34,11 @@
## Update cache ## Update cache
- name: Update APT cache - name: Update APT cache
apt: apt:
update_cache: '{{ True update_cache: '{{ true
if (openmanage__register_key is changed or if (openmanage__register_key is changed or
openmanage__register_repositories is changed) openmanage__register_repositories is changed)
else else
False }}' false }}'
register: openmanage__register_update register: openmanage__register_update
until: openmanage__register_update is success until: openmanage__register_update is success
when: (openmanage__deploy_state == "present") when: (openmanage__deploy_state == "present")