??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
Udac @` s d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d Z d
Z
d Z e d k r e n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys
---
module: syspatch
short_description: Manage OpenBSD system patches
version_added: "2.9"
description:
- "Manage OpenBSD system patches using syspatch"
options:
apply:
description:
- Apply all available system patches
default: False
required: false
revert:
description:
- Revert system patches
required: false
type: str
choices: [ all, one ]
author:
- Andrew Klaus (@precurse)
s
- name: Apply all available system patches
syspatch:
apply: true
- name: Revert last patch
syspatch:
revert: one
- name: Revert all patches
syspatch:
revert: all
s
rc:
description: The command return code (0 means success)
returned: always
type: int
stdout:
description: syspatch standard output
returned: always
type: str
sample: "001_rip6cksum"
stderr:
description: syspatch standard error
returned: always
type: str
sample: "syspatch: need root privileges"
reboot_needed:
description: Whether or not a reboot is required after an update
returned: always
type: bool
sample: True
( t
AnsibleModulec
C` sz t d t d d d t d t d d d d d g } t d
| d t d d d g g } t | } | j | d S(
Nt applyt typet boolt defaultt revertt strt choicest allt onet
argument_spect supports_check_modet required_one_of( t dictt FalseR t Truet syspatch_runt exit_json( t module_argst modulet result( ( sC /usr/lib/python2.7/site-packages/ansible/modules/system/syspatch.pyt
run_moduleR s c C` s d g } t } t } g } | j d r\ d g } | j d d k rP d g } q{ d g } n | j d r{ d g } g } n | j | | \ } } } | d k r | j d
d | | | | f n t | d k r t }
n t }
| j r |
} n |
r| j | | \ } } } | d k rV| d k rV| j d
d | | | | f nA | j j d
rtt } n# | j j d r| j d n t | d k r| j d n t } n t } t
d | d | d | d | d | d | S( Ns /usr/sbin/syspatchR
s -lR s -Rs -rR s -ci t msgs' Command %s failed rc=%d, out=%s, err=%ss0 ln: /usr/X11R6/bin/X: No such file or directory
s create unique kernels syspatch updated itselfs0 Syspatch was updated. Please run syspatch again.s5 syspatch had suggested changes, but stdout was empty.t changedt
reboot_neededt rct stderrt stdoutt warnings( R t paramst run_commandt fail_jsont lenR t
check_modet lowert findt appendR ( R t cmdR R R$ t
check_flagt run_flagR! t outt errt change_pending( ( sC /usr/lib/python2.7/site-packages/ansible/modules/system/syspatch.pyR d sN
# # c C` s t d S( N( R ( ( ( sC /usr/lib/python2.7/site-packages/ansible/modules/system/syspatch.pyt main s t __main__N( t
__future__R R R R
t
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt ansible.module_utils.basicR R R R3 t __name__( ( ( sC /usr/lib/python2.7/site-packages/ansible/modules/system/syspatch.pyt s
@