|
|
@ -52,13 +52,19 @@ options:
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
# Example action to import a key from a url
|
|
|
|
# Example action to import a key from a url
|
|
|
|
- rpm_key: state=present key=http://apt.sw.be/RPM-GPG-KEY.dag.txt
|
|
|
|
- rpm_key:
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
key: 'http://apt.sw.be/RPM-GPG-KEY.dag.txt'
|
|
|
|
|
|
|
|
|
|
|
|
# Example action to import a key from a file
|
|
|
|
# Example action to import a key from a file
|
|
|
|
- rpm_key: state=present key=/path/to/key.gpg
|
|
|
|
- rpm_key:
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
key: /path/to/key.gpg
|
|
|
|
|
|
|
|
|
|
|
|
# Example action to ensure a key is not present in the db
|
|
|
|
# Example action to ensure a key is not present in the db
|
|
|
|
- rpm_key: state=absent key=DEADB33F
|
|
|
|
- rpm_key:
|
|
|
|
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
key: DEADB33F
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
import os.path
|
|
|
|
import os.path
|
|
|
|