-#!/usr/bin/python3
-
# Copyright 2018, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
-#!/usr/bin/python3
-
# Copyright 2020, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# These are Python requirements needed to run ceph-ansible main
-ansible-core>=2.14,<2.15,!=2.9.10
+ansible-core>=2.15,<2.17,!=2.9.10
netaddr
six
# Remove yum caches so yum doesn't get confused if we are reinstalling a different ceph version
- name: purge yum cache
- command: yum clean all
- args:
- warn: no
+ command: yum clean all #noqa: [303]
changed_when: false
when: ansible_facts['pkg_mgr'] == 'yum'
---
- name: check firewalld installation on redhat or SUSE/openSUSE
- command: rpm -q firewalld
+ command: rpm -q firewalld # noqa [303]
register: firewalld_pkg_query
ignore_errors: true
check_mode: no
- name: create nss entries for keystone certificates
shell: "{{ item }}"
- args:
- warn: no
changed_when: false
with_items:
- "openssl x509 -in /etc/keystone/ssl/certs/ca.pem -pubkey | certutil -d {{ radosgw_nss_db_path }} -A -n ca -t 'TCu,Cu,Tuw'"
- name: fail on unsupported ansible version
fail:
- msg: "Ansible version must be 2.14!"
- when: ansible_version.minor|int != 14
+ msg: "Ansible version must be either 2.15 or 2.16!"
+ when: ansible_version.minor|int not in [15, 16]
- name: fail on unsupported system
fail:
pytest-testinfra
pytest-xdist
pytest
-ansible-core>=2.14,<2.15,!=2.9.10
-Jinja2>=2.10
+ansible-core>=2.15,<2.17,!=2.9.10
netaddr
mock
jmespath