??????????????
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 d
l Z d d
l
Z
d d l m Z d d l
m Z m Z d
„ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ e d k rë e ƒ n d
S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysn
---
module: crypttab
short_description: Encrypted Linux block devices
description:
- Control Linux encrypted block devices that are set up during system boot in C(/etc/crypttab).
version_added: "1.9"
options:
name:
description:
- Name of the encrypted block device as it appears in the C(/etc/crypttab) file, or
optionally prefixed with C(/dev/mapper/), as it appears in the filesystem. I(/dev/mapper/)
will be stripped from I(name).
type: str
required: yes
state:
description:
- Use I(present) to add a line to C(/etc/crypttab) or update its definition
if already present.
- Use I(absent) to remove a line with matching I(name).
- Use I(opts_present) to add options to those already present; options with
different values will be updated.
- Use I(opts_absent) to remove options from the existing set.
type: str
required: yes
choices: [ absent, opts_absent, opts_present, present ]
backing_device:
description:
- Path to the underlying block device or file, or the UUID of a block-device
prefixed with I(UUID=).
type: str
password:
description:
- Encryption password, the path to a file containing the password, or
C(-) or unset if the password should be entered at boot.
type: path
opts:
description:
- A comma-delimited list of options. See C(crypttab(5) ) for details.
type: str
path:
description:
- Path to file to use instead of C(/etc/crypttab).
- This might be useful in a chroot environment.
type: path
default: /etc/crypttab
author:
- Steve (@groks)
s—
- name: Set the options explicitly a device which must already exist
crypttab:
name: luks-home
state: present
opts: discard,cipher=aes-cbc-essiv:sha256
- name: Add the 'discard' option to any existing options for all devices
crypttab:
name: '{{ item.device }}'
state: opts_present
opts: discard
loop: '{{ ansible_mounts }}'
when: "'/dev/mapper/luks-' in {{ item.device }}"
N( t
AnsibleModule( t to_bytest to_nativec C` sS t d t d t d d d t ƒ d t d d d t d d d d
d g ƒ d t d d ƒ d
t d d ƒ d t d d ƒ d t d d d d ƒ ƒ d t ƒ } | j d } | j d
} | j d } | j d } | j d } | j d } | j d ƒ r| t d ƒ } n | d k rO| d k rO| d k rO| d k rO| j d d | j n d | k r| d k ss| d k r| j d d | | j n x… d | f d | f d
| f d | f f D]Y \ } } | d k r»d | k s÷d | k s÷| d k r»| j d d | | j q»q»Wy t | ƒ } | j | ƒ }
Wn? t
k
rx} | j d d t | ƒ d t j
ƒ | j n Xd | k r¶|
d k r¶| d k r¶| j d d | j n t d } }
| d k ró|
d k ræ|
j ƒ \ } }
qænó | d k rS|
d k r)|
j | | | ƒ \ } }
qæ| j t d | | | | ƒ ƒ \ } }
n“ | d
k r°|
d k r†|
j j | ƒ \ } }
qæ| j t d | | | | ƒ ƒ \ } }
n6 | d k ræ|
d k ræ|
j j | ƒ \ } }
qæn | r3| j r3z, t | d ƒ } | j t | d d! ƒƒ Wd | j ƒ Xn | j d" | d |
| j d S(# Nt
argument_spect namet typet strt requiredt statet choicest absentt opts_absentt opts_presentt presentt backing_devicet passwordt patht optst defaults
/etc/crypttabt supports_check_modes /dev/mapper/t msgs> expected one or more of 'backing_device', 'password' or 'opts's: cannot update 'backing_device' or 'password' when state=%st s t s. invalid '%s': contains white space or is emptys* failed to open and parse crypttab file: %st exceptions, 'backing_device' required to add a new entryt ?t wbt errorst surrogate_or_strictt changed( R t dictt Truet paramst
startswitht lent Nonet fail_jsont Crypttabt matcht ExceptionR
t tracebackt
format_exct Falset removet sett addt LineR t
check_modet opent writeR t closet exit_json( t moduleR R R R R R t arg_namet argt crypttabt
existing_linet eR$ t reasont f( ( sC /usr/lib/python2.7/site-packages/ansible/modules/system/crypttab.pyt mainW sx '
0
$
0$
**R, c B` s; e Z g Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C` s½ | | _ t j j | ƒ sk t j j t j j | ƒ ƒ sU t j t j j | ƒ ƒ n t | d ƒ j ƒ n z@ t | d ƒ } x* | j ƒ D] } | j j t
| ƒ ƒ qŠ WWd | j ƒ Xd S( Nt at r( R t ost existst dirnamet makedirsR7 R9 t readlinest _linest appendR5 ( t selfR RB t line( ( sC /usr/lib/python2.7/site-packages/ansible/modules/system/crypttab.pyt __init__« s c C` s | j j | ƒ t d f S( Ns
added line( RK RL R&