|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
# (c) 2015, Kevin Brebanov <https://github.com/kbrebanov>
|
|
|
|
|
# Based on pacman (Afterburn <http://github.com/afterburn>, Aaron Bull Schaefer <aaron@elasticdog.com>)
|
|
|
|
|
# and apt (Matthew Williams <matthew@flowroute.com>>) modules.
|
|
|
|
|
# and apt (Matthew Williams <matthew@flowroute.com>) modules.
|
|
|
|
|
#
|
|
|
|
|
# This module is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
@ -114,8 +114,10 @@ EXAMPLES = '''
|
|
|
|
|
update_cache: yes
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
import re
|
|
|
|
|
# Import module snippets.
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
|
|
|
|
|
def update_package_db(module):
|
|
|
|
|
cmd = "%s update" % (APK_PATH)
|
|
|
|
@ -268,7 +270,6 @@ def main():
|
|
|
|
|
elif p['state'] == 'absent':
|
|
|
|
|
remove_packages(module, p['name'])
|
|
|
|
|
|
|
|
|
|
# Import module snippets.
|
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
main()
|
|
|
|
|