??????????????
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 e f d
„ ƒ YZ
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: gconftool2
author:
- Kenneth D. Evensen (@kevensen)
short_description: Edit GNOME Configurations
description:
- This module allows for the manipulation of GNOME 2 Configuration via
gconftool-2. Please see the gconftool-2(1) man pages for more details.
version_added: "2.3"
options:
key:
description:
- A GConf preference key is an element in the GConf repository
that corresponds to an application preference. See man gconftool-2(1)
required: yes
value:
description:
- Preference keys typically have simple values such as strings,
integers, or lists of strings and integers. This is ignored if the state
is "get". See man gconftool-2(1)
value_type:
description:
- The type of value being set. This is ignored if the state is "get".
choices: [ bool, float, int, string ]
state:
description:
- The action to take upon the key/value.
required: yes
choices: [ absent, get, present ]
config_source:
description:
- Specify a configuration source to use rather than the default path.
See man gconftool-2(1)
direct:
description:
- Access the config database directly, bypassing server. If direct is
specified then the config_source must be specified as well.
See man gconftool-2(1)
type: bool
default: 'no'
s™
- name: Change the widget font to "Serif 12"
gconftool2:
key: "/desktop/gnome/interface/font_name"
value_type: "string"
value: "Serif 12"
s¨
key:
description: The key specified in the module parameters
returned: success
type: str
sample: /desktop/gnome/interface/font_name
value_type:
description: The type of the value that was changed
returned: success
type: str
sample: string
value:
description: The value of the preference key after executing the module
returned: success
type: str
sample: "Serif 12"
...
( t
AnsibleModulet GConf2Preferencec B` s, e Z e d d „ Z d „ Z e d „ Z RS( t c C` s: | | _ | | _ | | _ | | _ | | _ | | _ d S( N( t ansiblet keyt
value_typet valuet
config_sourcet direct( t selfR R R
R R R ( ( sE /usr/lib/python2.7/site-packages/ansible/modules/system/gconftool2.pyt __init__X s c C` s t S( N( t False( R ( ( sE /usr/lib/python2.7/site-packages/ansible/modules/system/gconftool2.pyt value_already_seta s c C` s‹ d } d } t } d } | j d k rL t | j ƒ d k rL d | j } n | j r^ d } n d } yê | d k rŒ | d j | j ƒ 7} n_ | d k rÆ | d j | | | j | | j | j ƒ 7} n% | d
k rë | d j | j ƒ 7} n | j j
| d t ƒ\ } } } t | ƒ d k rG| rM| j j d
d t
| ƒ ƒ qMn t } Wn* t k
rz}
| j j d
d |
ƒ n X| | j ƒ f S( s3 Helper function to perform gconftool-2 operations R
i s --config-source s --directs gconftool-2 t gets --get {0}t sets" {0} {1} --type {2} --{3} {4} "{5}"t unsets --unset {0}t use_unsafe_shellt msgs! gconftool-2 failed with error: %ss% gconftool-2 failed with exception: %sN( R R t Nonet lenR t formatR R
R R t run_commandt Truet fail_jsont strt OSErrort rstrip( R t call_typet
fail_onerrR R t changedt outt cmdt rct errt exception( ( sE /usr/lib/python2.7/site-packages/ansible/modules/system/gconftool2.pyt calld s> $ !
( t __name__t
__module__R R R R R+ ( ( ( sE /usr/lib/python2.7/site-packages/ansible/modules/system/gconftool2.pyR W s c C` sú t d t d t d d d t ƒ d t d d d d d d
d g ƒ d t d d ƒ d
t d d d t d d d d g ƒ d t d d d t ƒ d t d d ƒ ƒ d t ƒ } i d d 6d d 6d d 6} | j d } | j d } | j d j ƒ d k rü d } n) | j d d k rd } n
| j d } | | j d
} | j d } | j d } t } d } | d k r(| d k s€| d k r| j d d t | ƒ ƒ n5 | d k sµ| d k rÒ| j d d t | ƒ ƒ n | rû| d k rû| j d d d ƒ q(| r(| d k r(| j d d d ƒ q(n t | | | | | | ƒ }
|
j
d d! t ƒ\ } } | | k rš| j r‚t } | } q |
j
| ƒ \ } } n | } t d" i | d# 6| d 6| d 6| d$ 6| d% 6| j d d&