mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Add metadata for xbps
Pass pyflakes
This commit is contained in:
parent
d2fc24b771
commit
2cfa25c930
1 changed files with 6 additions and 3 deletions
|
@ -19,6 +19,10 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ANSIBLE_METADATA = {'status': ['preview'],
|
||||||
|
'supported_by': 'community',
|
||||||
|
'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: xbps
|
module: xbps
|
||||||
|
@ -94,6 +98,8 @@ packages:
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
|
|
||||||
def is_installed(xbps_output):
|
def is_installed(xbps_output):
|
||||||
"""Returns package install state"""
|
"""Returns package install state"""
|
||||||
|
@ -293,8 +299,5 @@ def main():
|
||||||
remove_packages(module, xbps_path, pkgs)
|
remove_packages(module, xbps_path, pkgs)
|
||||||
|
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue